I've just discovered that xdg-open is not detecting xfce as the desktop,
at this line:

elif xprop -root _DT_SAVE_MODE 2> /dev/null | grep ' = \"xfce4\"$'
>/dev/null 2>&1; then DE=xfce;

As it doesn't detect the desktop, it uses open_generic_xdg_mime() which
indeed picks up only the first word from Exec= in the desktop file. If
the desktop were detected as xfce, it would have called exo-open which
correctly uses the full Exec= command line. That's why Thunar was using
the desktop file correctly because quite certainly it calls exo-open.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1395114

Title:
  xdg-open doesn't use desktop file to open image/jpeg files

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdg-utils/+bug/1395114/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to