DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python get desktop environment
import os os.environ.get('DESKTOP_SESSION') # OUTPUT # 'gnome'
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#python
#desktop
#environment
ADD COMMENT
Topic
COMMENT
Name
3+2 =
Submit