https://bugs.kde.org/show_bug.cgi?id=377675
Bug ID: 377675 Summary: Scripting wallpaper change works from interactive console but not DBUS interface Product: plasmashell Version: 5.9.3 Platform: Archlinux Packages OS: Linux Status: UNCONFIRMED Severity: normal Priority: NOR Component: Desktop Containment Assignee: se...@kde.org Reporter: bharadwaj.raju...@gmail.com Target Milestone: 1.0 A script for changing the wallpaper works in the Desktop Shell Scripting Console but not from the DBUS evaluateScript method. Test script: 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", "file:///usr/share/example.jpg") } What works: Running it from the Desktop Shell Scripting Console. Result: Wallpaper changes. What doesn't: Running it through the DBUS evaluateScript method. Example shell session: script=$(echo '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", "file:///usr/share/example.jpg") }' ) dbus-send --session --dest=org.kde.plasmashell --type=method_call /PlasmaShell org.kde.PlasmaShell.evaluateScript "string:$script" Result: Returns successfuly -- but no change in wallpaper! -- You are receiving this mail because: You are watching all bug changes.