https://bugs.kde.org/show_bug.cgi?id=380347

Josep Febrer <jfeb...@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jfeb...@gmail.com

--- Comment #5 from Josep Febrer <jfeb...@gmail.com> ---
With this patch I can no longer change the wallpaper via qdbus with or without
the widgets locked.

Even with the widgets unlocked, I get this result:

qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript 'var
allDesktops = desktops();print (allDesktops);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:/home/user/wallpaper.jpg")}'
Error: org.freedesktop.DBus.Error.Failed
Widgets are locked

I think that the logic in the patch it's wrong.
I modified in shell/shellcorona.cpp

if (immutability() != Plasma::Types::SystemImmutable) {

for 

if (immutability() == Plasma::Types::SystemImmutable) {

And then it works as intended I can change the wallpaper via qdbus with the
widgets locked and unlocked.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to