xdg-open doesn't use desktop file to open image/jpeg files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xdg-utils (Ubuntu) |
New
|
Undecided
|
Unassigned |
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/
paulo@monk:~$ grep -i exec /usr/share/
Exec=geeqie -r %F
I confirmed that there was no local geeqie.desktop:
paulo@monk:~$ ls ~/.local/
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/
Remote Geeqie not running, starting...Could not init LIRC support
ProblemType: Bug
DistroRelease: Ubuntu 14.10
Package: xdg-utils 1.1.0~rc1-2ubuntu8
ProcVersionSign
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)
PackageArchitec
SourcePackage: xdg-utils
UpgradeStatus: No upgrade log present (probably fresh install)
Correcting myself: xdg-open IS using the correct desktop file for image/jpeg files, but it's getting the command name to exec and ignoring any other arguments present in the desktop file Exec field.