Get the window manager from the GDMSESSION environment variable, fallback to GNOME if it's not set

This commit is contained in:
Gwendal Le Bihan 2011-08-29 15:41:36 +02:00
parent 3715090486
commit 6f34403964

View File

@ -54,8 +54,11 @@ ICON = "/usr/lib/linuxmint/mintMenu/visualisation-logo.png"
sys.path.append( os.path.join( PATH , "plugins") ) sys.path.append( os.path.join( PATH , "plugins") )
# FIXME: Get the windowmanager from somewhere, don't take GNOME for granted # FIX: Get the window manager from the GDMSESSION environment variable, fallback to GNOME if it's not set
xdg.Config.setWindowManager( "GNOME" ) windowManager = os.getenv("GDMSESSION").upper()
if not windowManager:
windowManager = "GNOME"
xdg.Config.setWindowManager( windowManager )
from easybuttons import iconManager from easybuttons import iconManager
from easygconf import EasyGConf from easygconf import EasyGConf