Ubuntu Pastebin

Paste from fossfreedom at Tue, 25 Apr 2017 18:40:31 +0000

Download as text
1
2
3
4
5
6
7
8
>>> import os
>>> current_env=os.environ.get("XDG_CURRENT_DESKTOP", '').split(":")
>>> print (current_env)
['Budgie', 'GNOME']
>>> if current_env in ('Unity', 'Budgie'):
...   print ("its in here")
... 
>>> 
Download as text