mirror of
https://github.com/dylanaraps/pywal.git
synced 2024-11-29 11:24:03 +01:00
Wallpaper: Fix wallpaper not being set
This commit is contained in:
parent
5b1848c68e
commit
9c42c281d9
4
wal
4
wal
@ -339,6 +339,8 @@ def get_desktop_env():
|
|||||||
|
|
||||||
def set_desktop_wallpaper(desktop, img):
|
def set_desktop_wallpaper(desktop, img):
|
||||||
"""Set the wallpaper for the desktop environment."""
|
"""Set the wallpaper for the desktop environment."""
|
||||||
|
desktop = str(desktop).lower()
|
||||||
|
|
||||||
if "xfce" in desktop or "xubuntu" in desktop:
|
if "xfce" in desktop or "xubuntu" in desktop:
|
||||||
subprocess.Popen(["xfconf-query", "--channel", "xfce4-desktop",
|
subprocess.Popen(["xfconf-query", "--channel", "xfce4-desktop",
|
||||||
"--property",
|
"--property",
|
||||||
@ -368,7 +370,7 @@ def set_desktop_wallpaper(desktop, img):
|
|||||||
|
|
||||||
def set_wallpaper(img):
|
def set_wallpaper(img):
|
||||||
"""Set the wallpaper."""
|
"""Set the wallpaper."""
|
||||||
desktop = str(get_desktop_env()).lower()
|
desktop = get_desktop_env()
|
||||||
|
|
||||||
if desktop:
|
if desktop:
|
||||||
set_desktop_wallpaper(desktop, img)
|
set_desktop_wallpaper(desktop, img)
|
||||||
|
Loading…
Reference in New Issue
Block a user