Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

wallpaper doesn't change on kde plasma #697

Open
robert-edward-lee opened this issue Feb 4, 2023 · 2 comments
Open

wallpaper doesn't change on kde plasma #697

robert-edward-lee opened this issue Feb 4, 2023 · 2 comments

Comments

@robert-edward-lee
Copy link

without -n argument wallpaper doesn't change

@robert-edward-lee
Copy link
Author

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])

@robert-edward-lee
Copy link
Author

robert-edward-lee commented Feb 4, 2023

there is a missing semicolon

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant