Éric Araujo added the comment:

Sorry I did not comment earlier, but there is this way:

>>> os.environ.get('DESKTOP_SESSION') == 'xfce'
True

----------
resolution: rejected -> 
status: closed -> open
versions: +Python 3.3, Python 3.4 -Python 3.1

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue6671>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to