summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2017-06-20 23:16:49 +1000
committerDylan Araps <dylan.araps@gmail.com>2017-06-20 23:16:49 +1000
commit9c42c281d9049d9d2b1c127151f43e4e06178618 (patch)
treea40ae48e63b1ff248632794fe453c8ddc542aaf2
parent5b1848c68e270f98f1bcb9626f3a561e38f0b129 (diff)
Wallpaper: Fix wallpaper not being set
-rwxr-xr-xwal4
1 files changed, 3 insertions, 1 deletions
diff --git a/wal b/wal
index eeaf84d..af54b88 100755
--- a/wal
+++ b/wal
@@ -339,6 +339,8 @@ def get_desktop_env():
def set_desktop_wallpaper(desktop, img):
"""Set the wallpaper for the desktop environment."""
+ desktop = str(desktop).lower()
+
if "xfce" in desktop or "xubuntu" in desktop:
subprocess.Popen(["xfconf-query", "--channel", "xfce4-desktop",
"--property",
@@ -368,7 +370,7 @@ def set_desktop_wallpaper(desktop, img):
def set_wallpaper(img):
"""Set the wallpaper."""
- desktop = str(get_desktop_env()).lower()
+ desktop = get_desktop_env()
if desktop:
set_desktop_wallpaper(desktop, img)