Bug#888652: baobab: Baobab opens the wrong handler for inode/directory MIME type

Rafael Varela Pet rafael.varela at gmail.com
Mon Jan 29 09:29:40 UTC 2018


2018-01-28 14:17 GMT+01:00 Simon McVittie <smcv at debian.org>:

> On Sun, 28 Jan 2018 at 13:29:32 +0100, Rafael Varela Pet wrote:
> > Kaffeine installs itself as a handler for inode/directory MIME type
> > (wich it does make much sense for me, although it was made on purpose
> > by upstream [1]) and this has a side effect on baobab, because it seems
> > to ignore the default setting under Xfce4 and starts to launch kaffeine
> > when I try to open a folder instead of Thunar:
> >
> >   $ xdg-mime query default inode/directory
> >   Thunar-folder-handler.desktop
>
> This is unlikely to be a bug in baobab. It might be a bug in GLib, or
> xdg-mime, or whatever you used to set the default in Xfce4.

Thank you for your prompt answer.

Agreed, although Baobab is the only application that exhibits this
behaviour so far and I did not even try consciously to change the
default.

By the way, the command "gio open /tmp" launches Thunar, not Kaffeine.


> If you install the libglib2.0-bin package and run
>
>     gio mime inode/directory
>
> what does it say?

$ dpkg -l libglib2.0-bin
ii  libglib2.0-bin 2.50.3-2

$ gio mime inode/directory
Aplicación predeterminada para «inode/directory»: Thunar-folder-handler.desktop
Aplicaciones registradas:
Thunar-folder-handler.desktop
code.desktop
org.kde.kaffeine.desktop
org.gnome.Nautilus.desktop
org.gnome.baobab.desktop
Aplicaciones recomendadas:
Thunar-folder-handler.desktop
code.desktop
org.kde.kaffeine.desktop
org.gnome.Nautilus.desktop
org.gnome.baobab.desktop


> What is the value of the XDG_CURRENT_DESKTOP and XDG_MENU_PREFIX environment
> variables?

$ echo $XDG_CURRENT_DESKTOP
XFCE

$ echo $XDG_MENU_PREFIX
xfce-


> What is in ~/.config/${XDG_CURRENT_DESKTOP}-mimeapps.list, if that
> file exists? (Use $XDG_CONFIG_HOME instead of ~/.config, if set)

~/.config/${XDG_CURRENT_DESKTOP}-mimeapps.list does not exist.

($XDG_CONFIG_HOME is not set)


> What is in ~/.config/mimeapps.list, if that file exists?

You can find attached a copy of it. For the inode/* MIME type it only
has a reference to Thunar:

$ grep -i inode ~/.config/mimeapps.list
inode/symlink=Thunar-folder-handler.desktop


> Do any files matching /usr/share/applications/*.list exist on your
> system? If they do, what is their contents?

It only exists /usr/share/applications/gnome-mimeapps.list. You can
find attached a copy of it.

For the inode/directory MIME type it only has a reference to Nautilus:

$ grep -i inode /usr/share/applications/gnome-mimeapps.list
inode/directory=org.gnome.Nautilus.desktop

Best regards,

Rafael Varela
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gnome-mimeapps.list
Type: application/octet-stream
Size: 15603 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20180129/be092fc3/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mimeapps.list
Type: application/octet-stream
Size: 1970 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-gnome-maintainers/attachments/20180129/be092fc3/attachment-0003.obj>


More information about the pkg-gnome-maintainers mailing list