FS#22848 - [xdg-utils] XFCE 4.8 detection is broken
Attached to Project:
Arch Linux
Opened by Mauro Santos (R00KIE) - Thursday, 10 February 2011, 23:00 GMT
Last edited by Eric Belanger (Snowman) - Sunday, 19 June 2011, 05:01 GMT
Opened by Mauro Santos (R00KIE) - Thursday, 10 February 2011, 23:00 GMT
Last edited by Eric Belanger (Snowman) - Sunday, 19 June 2011, 05:01 GMT
|
Details
Description:
Using xdg-open with xfce 4.8 does not work as expected, instead of opening a file with the associated program it opens firefox (or possibly another browser). This also affects other programs that rely on xdg-utils, such as chromium and thunderbird. The problem seems to be with the way the detection is made, it seems previously xfce was detected using xprop, however the properly that was used to identify xfce is no longer set and xdg-open will default to a generic DE which in turn will look for a few browsers and try to open the file there. Currently it seems xfce exports DESKTOP_SESSION and that can be used to identify xfce 4.8 (and newer?). I provide a patch with a possible solution which shouldn't break the detection of previous versions of xfce (not tested though). Additional info: * package version(s) xdg-utils 1.1.0rc1-1 All other packages are up-to-date Steps to reproduce: While using xfce 4.8 try to open an image file with 'xdg-open /path/to/image.jpg', it will open firefox (if installed) instead of the associated image viewer. |
This task depends upon
Closed by Eric Belanger (Snowman)
Sunday, 19 June 2011, 05:01 GMT
Reason for closing: Fixed
Additional comments about closing: xdg-utils-1.1.0rc1-3 : Added patch from upstream git to fix Xfce detection
Sunday, 19 June 2011, 05:01 GMT
Reason for closing: Fixed
Additional comments about closing: xdg-utils-1.1.0rc1-3 : Added patch from upstream git to fix Xfce detection
I'm using Xfce 4.8 with lxdm together.
(lxdm-git 20110212-1)
My DESKTOP_SESSION='Xfce Session', so condition x"$DESKTOP_SESSION" == "xfce" is never true.
Proper detection will be:
elif [ x"$(echo "$DESKTOP_SESSION" | grep -i 'xfce')" != x"" ]; then DE=xfce;
See my patch attached.
[eugene@el-vaio ~]$ pacman -Q | grep xprop
xorg-xprop 1.2.0-1
[eugene@el-vaio ~]$ xprop -root | grep -i xfce
XFCE_DESKTOP_WINDOW(WINDOW): window id # 0x1200003
According to the last comment, it's because we build xfce-session with --disable-legacy-sm. Is there a reason for building with that?
Speaking of xorg-xprop, yes I do have it installed. Also shouldn't xdg-utils at least have xorg-xprop as an optdepend?