Open robert-edward-lee opened 1 year ago
diff --git a/pywal/wallpaper.py b/pywal/wallpaper.py
index 6a50627..2ba07ff 100644
--- a/pywal/wallpaper.py
+++ b/pywal/wallpaper.py
@@ -119,10 +119,13 @@ def set_desktop_wallpaper(desktop, img):
elif "kde" in desktop:
string = """
- var allDesktops = desktops();for (i=0;i<allDesktops.length;i++){
- d = allDesktops[i];d.wallpaperPlugin = "org.kde.image";
- d.currentConfigGroup = Array("Wallpaper", "org.kde.image",
- "General");d.writeConfig("Image", "%s")};
+ var Desktops = desktops();
+ for (i = 0; i < Desktops.length; i++) {
+ d = Desktops[i];
+ d.wallpaperPlugin = "org.kde.image";
+ d.currentConfigGroup = Array("Wallpaper", "org.kde.image", "General");
+ d.writeConfig("Image", "%s");
+ }
"""
util.disown(["qdbus", "org.kde.plasmashell", "/PlasmaShell",
"org.kde.PlasmaShell.evaluateScript", string % img])
there is a missing semicolon
without
-n
argument wallpaper doesn't change