Public bug reported: xdg-open is not using the appropriate desktop file to open files with mimetype image/jpeg. Here's what it should use in my installation:
paulo@monk:~$ xdg-mime query default image/jpeg geeqie.desktop and here's the relevant section from /usr/share/applications/geeqie.desktop: paulo@monk:~$ grep -i exec /usr/share/applications/geeqie.desktop Exec=geeqie -r %F I confirmed that there was no local geeqie.desktop: paulo@monk:~$ ls ~/.local/share/applications/ | grep geeqie.desktop paulo@monk:~$ However, I can see xdg-open is opening image/jpeg files by running: geeqie %F because geeqie doesn't dettach itself from the terminal, and this is the message it shows on the terminal: paulo@monk:~/foto$ xdg-open 1ª\ comunhã.jpg Could not init LIRC support I can also see that Thunar uses the correct desktop file: if I click on a jpeg file inside Thunar, geeqie is started and dettaches itself, and the upstart log confirms that the geeqie.desktop Exec line was indeed called: paulo@monk:~$ grep -i geeqie ~/.cache/upstart/startxfce4.log Remote Geeqie not running, starting...Could not init LIRC support ProblemType: Bug DistroRelease: Ubuntu 14.10 Package: xdg-utils 1.1.0~rc1-2ubuntu8 ProcVersionSignature: Ubuntu 3.16.0-24.32-generic 3.16.4 Uname: Linux 3.16.0-24-generic x86_64 ApportVersion: 2.14.7-0ubuntu8 Architecture: amd64 CurrentDesktop: XFCE Date: Fri Nov 21 16:50:20 2014 InstallationDate: Installed on 2014-11-21 (0 days ago) InstallationMedia: Xubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1) PackageArchitecture: all SourcePackage: xdg-utils UpgradeStatus: No upgrade log present (probably fresh install) ** Affects: xdg-utils (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug utopic -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to xdg-utils in Ubuntu. https://bugs.launchpad.net/bugs/1395114 Title: xdg-open doesn't use desktop file to open image/jpeg files Status in “xdg-utils” package in Ubuntu: New Bug description: xdg-open is not using the appropriate desktop file to open files with mimetype image/jpeg. Here's what it should use in my installation: paulo@monk:~$ xdg-mime query default image/jpeg geeqie.desktop and here's the relevant section from /usr/share/applications/geeqie.desktop: paulo@monk:~$ grep -i exec /usr/share/applications/geeqie.desktop Exec=geeqie -r %F I confirmed that there was no local geeqie.desktop: paulo@monk:~$ ls ~/.local/share/applications/ | grep geeqie.desktop paulo@monk:~$ However, I can see xdg-open is opening image/jpeg files by running: geeqie %F because geeqie doesn't dettach itself from the terminal, and this is the message it shows on the terminal: paulo@monk:~/foto$ xdg-open 1ª\ comunhã.jpg Could not init LIRC support I can also see that Thunar uses the correct desktop file: if I click on a jpeg file inside Thunar, geeqie is started and dettaches itself, and the upstart log confirms that the geeqie.desktop Exec line was indeed called: paulo@monk:~$ grep -i geeqie ~/.cache/upstart/startxfce4.log Remote Geeqie not running, starting...Could not init LIRC support ProblemType: Bug DistroRelease: Ubuntu 14.10 Package: xdg-utils 1.1.0~rc1-2ubuntu8 ProcVersionSignature: Ubuntu 3.16.0-24.32-generic 3.16.4 Uname: Linux 3.16.0-24-generic x86_64 ApportVersion: 2.14.7-0ubuntu8 Architecture: amd64 CurrentDesktop: XFCE Date: Fri Nov 21 16:50:20 2014 InstallationDate: Installed on 2014-11-21 (0 days ago) InstallationMedia: Xubuntu 14.10 "Utopic Unicorn" - Release amd64 (20141022.1) PackageArchitecture: all SourcePackage: xdg-utils UpgradeStatus: No upgrade log present (probably fresh install) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1395114/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp