Summary: | xdg-open does not detect xfce | ||
---|---|---|---|
Product: | Portland | Reporter: | Leonid Evdokimov <leon+freedesktop> |
Component: | xdg-utils | Assignee: | Fathi Boudra <fabo> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | fabo, ht990332 |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: | better logic for DE detection |
Description
Leonid Evdokimov
2010-01-07 08:41:20 UTC
This only occurs when xfce4-session is compiled with '--disable-legacy-sm', which is not default. When legacy support is disabled, _DT_SAVE_MODE and _DT_RESTORE_MODE are not set. Nonetheless, it would be best to check against DESKTOP_SESSION at the least. Guys, I do not agree with detection based on environment variable. I use archlinux with xfce 4.8 --disable-legacy-sm is used for xfce4-session. My login manager is LXDM (built from git), and it sets : [eugene@el-vaio ~]$ set | grep DESKTOP DESKTOP_SESSION='Xfce Session' So condition proposed in patch: elif [ x"$DESKTOP_SESSION" = x"xfce" ]; then DE=xfce; won't work for me. Find other way to detect XFCE with --disable-legacy-sm: [eugene@el-vaio ~]$ xprop -root | grep -i "xfce" XFCE_DESKTOP_WINDOW(WINDOW): window id # 0x1400003 I propose this: elif [ x"$(xprop -root| grep -i 'xfce_desktop_window')" != x"" ]; then DE=xfce; Thanks, incorporated the ideas here into git. See also related bug #33321 |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.