Skip to content

Commit

Permalink
revert and try again
Browse files Browse the repository at this point in the history
  • Loading branch information
s4w3d0ff authored May 16, 2017
1 parent 1dae2f9 commit d16777c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion himawaripy/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ def get_desktop_environment():
return "razor-qt"
elif desktop_session.startswith("wmaker"): # e.g. wmaker-common
return "windowmaker"
elif desktop_session.startswith("peppermint"):
return "gnome"
if os.environ.get('KDE_FULL_SESSION') == 'true':
return "kde"
elif os.environ.get('GNOME_DESKTOP_SESSION_ID'):
Expand All @@ -124,7 +126,7 @@ def get_desktop_environment():
current_desktop = os.environ.get("XDG_CURRENT_DESKTOP")
if current_desktop:
current_desktop = current_desktop.lower()
if current_desktop in ["gnome", "unity", "kde", "gnome-classic", "mate", "lxde"]:
if current_desktop in ["gnome", "unity", "kde", "gnome-classic", "mate"]:
return current_desktop

# Special Cases
Expand Down

0 comments on commit d16777c

Please sign in to comment.