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

--- Comment #14 from Oded Arbel <o...@geek.co.il> ---
Thank you Fushan Wen. With the current version of plasma-workspace in Neon
testing, I can see that the D-Bus API response for `org.kde.plasmashell
/PlasmaShell org.kde.plasmashell.wallpaper` does indeed return the current
wallpaper.

My remaining concern if with the desktop scripting API
(https://develop.kde.org/docs/plasma/scripting/). In Plasma 5 I could run
something like this (using the interactive console, or the D-Bus API
`org.kde.PlasmaShell.evaluateScript`):

for (let d of desktopsForActivity('114ebbc8-f947-493d-bc5e-3762eab23c9a')) {
        if (d.screen != 1) continue;
        if (d.wallpaperPlugin != 'org.kde.slideshow') continue;
        // for (let h in d)
        //      print("Arg: " + h + " => " + d[h] + "\n");
        d.currentConfigGroup = ['Wallpaper',d.wallpaperPlugin,'General'];
        print(d.readConfig('Image') + "\n");
}

And that would print the current wallpaper image selected by the slideshow.

With Plasma 6, without force syncing the configuration files (as the slideshow
plugin hack was doing), this scripting code prints the file name of some very
old selected image (I think from the last log out, but I'm not sure).

I wonder if there's a way to get the desktop scripting API to also see the
configuration change.

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

Reply via email to