"Open in File Manager" is not working
Olivier Croquette
olivier at croquette.de
Sun Jan 12 08:30:38 GMT 2025
Hi,
A quick hint for those who would have the same problem. I just had the
issue that "Open in File Manager" was not working. More exactly, it was
opening the Videos app of Gnome (Totem), which just showed an error
message.
Since digiKam ist just using the desktop settings I checked there:
$ xdg-mime query default inode/directory
ART.desktop
Weird! I had expected Totem there. I use Gnome, so I tried:
$ gio mime inode/directory
Default application for “inode/directory”: org.gnome.Totem.desktop
Registered applications:
org.gnome.Totem.desktop
vlc.desktop
ART.desktop
org.gnome.Nautilus.desktop
Recommended applications:
org.gnome.Totem.desktop
vlc.desktop
ART.desktop
org.gnome.Nautilus.desktop
Bingo. Then:
$ gio mime inode/directory org.gnome.Nautilus.desktop
Set org.gnome.Nautilus.desktop as the default for inode/directory
Double check:
$ gio mime inode/directory
Default application for “inode/directory”: org.gnome.Nautilus.desktop
Registered applications:
org.gnome.Totem.desktop
vlc.desktop
org.gnome.Nautilus.desktop
ART.desktop
Recommended applications:
org.gnome.Totem.desktop
vlc.desktop
org.gnome.Nautilus.desktop
ART.desktop
Now the output of xdg-mime is correct too:
$ xdg-mime query default inode/directory
org.gnome.Nautilus.desktop
And "Open in File Manager" is working again. So I am happy, but I would
be even happier if I understood how xdg-mime and gio relate to each
other, technically speaking. Some general info can found here:
https://wiki.archlinux.org/title/Default_applications
It would be also nice if the file was selected in the file manager,
instead of just opening the directory.
Best regards
Olivier
More information about the Digikam-users
mailing list