shared-mime-info and desktops

Yaakov Selkowitz yselkowi at redhat.com
Mon Jul 20 20:13:47 UTC 2015


On Mon, 2015-07-20 at 13:37 -0600, Kevin Fenzi wrote:
> On Mon, 20 Jul 2015 08:21:33 -0400 (EDT)
> Bastien Nocera <bnocera at redhat.com> wrote:
> 
> > 
> > 
> > ----- Original Message -----
> > > On Thu, 16 Jul 2015 12:33:52 -0500
> > > Rex Dieter <rdieter at math.unl.edu> wrote:
> > >  
> > > > +1 I'm in favor, but ship it as mimeapps.list to comply with
> > > > modern related standards, see:
> > > > http://standards.freedesktop.org/mime-apps-spec/mime-apps-spec-1.0.html#file
> > > > 
> > > > Proposal: ship a generic/default mimeapps.list initially based on
> > > > content of gnome-mimeapps.list
> > > > 
> > > > I'm volunteering to maintain it if/when decisions are made to
> > > > stray from gnome-mimeapps.list at all.
> > > 
> > > Sounds great to me.
> > > 
> > > Bastien? You ok with that? or still prefer not to have one?
> > 
> > Works for me, although it might be better to really fix the desktop
> > specific values instead. It goes to show how the defaults were broken
> > in those desktops without the mimeapps.list crutch.
> 
> Well, I think perhaps the bigger case is what happens in non desktops?
> 
> ie, people who just roll their own setup with i3, ratpoison, etc, etc, 
> 
> Anyhow, I will try and look at making a default xfce one and probibly
> shipping it in something like xfce4-session. (Of course help welcome if
> folks want to help out). 

Here's what I have for Xfce on Cygwin:

https://github.com/cygwinports/garcon/blob/master/mimeapps.list

Which is installed as %{datadir}/applications/xfce-mimeapps.list.  I
happen to ship it in garcon, but whether it goes there, in
xfce4-session, or shared-mime-info doesn't really matter.  What does
matter is that XDG_CURRENT_DESKTOP is correctly defined:

https://bugzilla.xfce.org/show_bug.cgi?id=11239

That should be in 4.12, but 4.10 (F21) would require a patch:

https://github.com/cygwinports/xfce4-session/blob/master/4.10.1-XDG_CURRENT_DESKTOP.patch

-- 
Yaakov Selkowitz
Associate Software Engineer, ARM
Red Hat, Inc.




More information about the devel mailing list