Skip to content

Commit

Permalink
Fix empty DESKTOP_SESSION handling
Browse files Browse the repository at this point in the history
  • Loading branch information
hhannine committed May 9, 2020
1 parent cf5f692 commit 5d3c557
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion superpaper/wallpaper_processing.py
Expand Up @@ -28,9 +28,11 @@
def running_kde():
"""Detect if running in a KDE session."""
d_ses = os.environ.get("DESKTOP_SESSION")
if d_ses and ("plasma" in d_ses or "kde" in d_ses):
return True
kde_f_ses = os.environ.get("KDE_FULL_SESSION")
xdg_ses_dtop = os.environ.get("XDG_SESSION_DESKTOP")
if kde_f_ses == "true" or xdg_ses_dtop == "KDE" or "plasma" in d_ses or "kde" in d_ses:
if kde_f_ses == "true" or xdg_ses_dtop == "KDE":
return True
return False

Expand Down

0 comments on commit 5d3c557

Please sign in to comment.