msg91426 - (view) |
Author: Aliaksandr Stelmachonak (ava1ar) |
Date: 2009-08-09 10:35 |
Currently webbrowser.py only trying to use GNOME and KDE default browser setting. This patch adds launching Xfce default browser if xfce environment detected. |
|
|
msg109969 - (view) |
Author: Mark Lawrence (BreamoreBoy) * |
Date: 2010-07-11 09:05 |
This is a three line patch. |
|
|
msg109970 - (view) |
Author: Georg Brandl (georg.brandl) *  |
Date: 2010-07-11 09:20 |
I'm not so keen on the os.popen() -- is there no other way to find out if XFCE is running? |
|
|
msg122800 - (view) |
Author: Éric Araujo (eric.araujo) *  |
Date: 2010-11-29 14:05 |
Gajim lists processes thanks to /proc, which is platform-specific; a Web search shows the use of pidof, to the same effect; I looked for an envvar (I use Xfce) and found nothing. |
|
|
msg185415 - (view) |
Author: Georg Brandl (georg.brandl) *  |
Date: 2013-03-28 10:02 |
Closing to due to lack of a better way to detect Xfce. |
|
|
msg185450 - (view) |
Author: Éric Araujo (eric.araujo) *  |
Date: 2013-03-28 14:36 |
Sorry I did not comment earlier, but there is this way: >>> os.environ.get('DESKTOP_SESSION') == 'xfce' True |
|
|
msg192381 - (view) |
Author: Christian Heimes (christian.heimes) *  |
Date: 2013-07-06 00:49 |
I have a box with Ubuntu 12.04 and XFCE4: declare -x XDG_CURRENT_DESKTOP="XFCE" declare -x DESKTOP_SESSION="xubuntu" |
|
|
msg192382 - (view) |
Author: Éric Araujo (eric.araujo) *  |
Date: 2013-07-06 03:47 |
I don’t understand what your message is saying, Christian. |
|
|
msg192402 - (view) |
Author: Christian Heimes (christian.heimes) *  |
Date: 2013-07-06 10:11 |
I'm sorry for the confusion. My Xubuntu test box sets different environment variables than your system with xfce. It sets os.environ.get("DESKTOP_SESSION") == "xubuntu" and os.environ.get("XDG_CURRENT_DESKTOP") == "XFCE". |
|
|
msg192411 - (view) |
Author: Tomasz Maćkowiak (kurazu) * |
Date: 2013-07-06 11:17 |
My Xubuntu 13.04 has the same variables: 'XDG_CURRENT_DESKTOP': 'XFCE' 'DESKTOP_SESSION': 'xubuntu' as well as 'GDMSESSION': 'xubuntu' |
|
|
msg192496 - (view) |
Author: Éric Araujo (eric.araujo) *  |
Date: 2013-07-06 22:42 |
It’s not surprising to see differences in the environment given the complexity of X startup. I run xfce-session from lightdm, and I don’t have XDG_CURRENT_SESSION set. Still, it’s not too bad to have to check two envvars to determine we are on Xfce. |
|
|
msg192497 - (view) |
Author: Éric Araujo (eric.araujo) *  |
Date: 2013-07-06 22:43 |
XDG_CURRENT_DESKTOP* |
|
|
msg218770 - (view) |
Author: Berker Peksag (berker.peksag) *  |
Date: 2014-05-18 23:52 |
Attaching a patch that checks both XDG_CURRENT_DESKTOP and DESKTOP_SESSION env vars for XFCE. |
|
|
msg314427 - (view) |
Author: Cheryl Sabella (cheryl.sabella) *  |
Date: 2018-03-25 19:05 |
Should this patch be converted to a PR? |
|
|