Skip to content

Commit

Permalink
Corrected bug: .upper() would fail if GDMSESSION variable was not set
Browse files Browse the repository at this point in the history
  • Loading branch information
glebihan committed Aug 29, 2011
1 parent 6f34403 commit e719f98
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions usr/lib/linuxmint/mintMenu/mintMenu.py
Expand Up @@ -55,10 +55,10 @@
sys.path.append( os.path.join( PATH , "plugins") )

# FIX: Get the window manager from the GDMSESSION environment variable, fallback to GNOME if it's not set
windowManager = os.getenv("GDMSESSION").upper()
windowManager = os.getenv("GDMSESSION")
if not windowManager:
windowManager = "GNOME"
xdg.Config.setWindowManager( windowManager )
xdg.Config.setWindowManager( windowManager.upper() )

from easybuttons import iconManager
from easygconf import EasyGConf
Expand Down

0 comments on commit e719f98

Please sign in to comment.