Hello!
I’m using plasma 5 in Debian Bookworm.
I’d like to know if there are any options available to set the background image globally for all users, and prefferably not allowing them to change it.
I create an os image that i provision onto disks for peoples workstations. This is a NIS environment so fiddling with peoples home directories would be a hassle not to mention an ugly solution. I want to have all the settings already on the image when it gets provisioned. As all users exists already, an /etc/skel approach is also off the table.
Prior to changing to plasma i used an environment that relied on dconf and i could lock the background, set lockscreen timeouts and such for any logged in user regardless of their weird configuration in their home directories.
Now since it seems like plasma 5 does adhere to xdg standards i’ve put my config files in there. I’ve also tried using KDEDIRS set to something like /etc/kde but this does nothing as far as i can see. Using inotifywait during a login i can see how files in ~/.config and /etc/xdg are accessed but nothing for the directories in $KDEDIRS (tried different things like /etc/environment, exports in /etc/profile, /etc/bash.bashrc etc. etc.).
I’ve tried setting things like this in /etc/xdg/plasma-org.kde.plasma.desktop-appletsrc:
[Containments][1][Wallpaper][org.kde.image][General]
Image[$i]=/path/to/my/background.png
And in /etc/xdg/plasmarc i have tried things like:
[Wallpapers]
usersWallpapers[$i]=/path/to/my/background.png
As this is the files i’ve seen changes to in ~/.config/ whenever i change wallpaper.
According to userbase at kde org System Administration / Configuration Files I should be able to lock these settings down. But that does nothing as it always seem to prioritize the files in $HOME/.config/. I’ve also tried without the [$i] stuff and logged in with a user having a completely clean home directory. And then comes the problem with “Containments”, what exactly do they represent? I cannot know how many Containments a user will have? Seems to reflect number of monitors as far as wallpaper goes (i have Containments [1] and [2] for wallpaper on my dual monitor setup at least ). Should i just put down an arbitrary number of those settings above for each Containment like 1-9? Would be nice if one could use wildcards there
I really like plasma but these simple system administrator tasks seems very difficult/undocumented. There are certain things we have to have in place for our office computers, and background is one, and also force the use of locking the screen due to inactivity and so on and so forth. And if i cannot force these settings upon users i’m stuck with what we have today and won’t be able to transition to plasma
There are no issues whatsoever changing all this on a user level once logged in. But what i’m looking for is a per system default ( prefferably locked down ).
This is similar to another topic (wasn’t allowed to share links but search for “wallpaper multi-user failing”, as i’ve got the screenlocker locked down without any means to change it just as i want:
[Greeter][Wallpaper][org.kde.image][General]
Image[$i]=/path/to/file.png
PreviewImage=/path/to/file.png
With the differences that i’m using plasma 5, and the fact that i need this globally and not in /etc/skel.
Any help is apreciated <3
Best regards
Marcus