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

--- Comment #2 from Oliver Smith <ollieparan...@postmarketos.org> ---
(In reply to Niccolò Venerandi from comment #1)
> The wallpaper is read in the `plasma-org.kde.plasma.desktop-appletsrc` file:
> 
> ```
> [Containments][1][Wallpaper][org.kde.image][General]
> Image=/home/niccolove/Nextcloud/Photos/Wallpapers/IMG_1618.png
> ```

Right, I found that as well. I have also tried just installing a
`plasma-org.kde.plasma.desktop-appletsrc` via /etc/skel and set the wallpaper
there, but that didn't work either (and of course that wouldn't be a great
solution either).

> 
> each containment (e.g. monitor) has its own entry, so that different
> containments can have different wallpapers. There's a setup script, called
> 'org.kde.plasma.desktop-layout.js', that's part of the global theme and that
> an set this kind of things automatically:
> 
> ```
> var desktopsArray = desktopsForActivity(currentActivity());
> for( var j = 0; j < desktopsArray.length; j++) {
>     desktopsArray[j].wallpaperPlugin = 'org.kde.image';
> }
> ```
> 
> you can add:
> 
> ```
>     desk = desktopsArray[j];
>     desk.currentConfigGroup = new
> Array("Wallpaper","org.kde.image","General");
>     desk.writeConfig("Image", "/usr/share/something/");
> ```
> 
> I guess the correct way to do this would be to create a new look and feel
> theme that inherits anything from the Beeze one but only changes the
> wallpaper in the above script. However I never tried this.
> 
> Does this help?

Thanks for describing how it works, appreciate the effort you put into this
reply!

Unfortunately it doesn't really help however. The proposal here is at least as
complex, but untested, as the tested workaround I already have (writing that JS
file, writing a custom theme that inherits things from Breeze and then somehow
setting that theme as default).

This issue is about dramatically reducing the complexity to set a wallpaper
with e.g. a simple config file as written in the top post.

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

Reply via email to