Search
 
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
Name
3+2 =