I am using SUSE Studio to make a custom version of openSUSE with the KDE 4 desktop. A small problem is that the background is set by default to the chameleon light bulb. I suspect I can fix this manually by adding a line to the script that runs at the end of a build. So, what is this command, if it exists?
Asked
Active
Viewed 2,329 times
1 Answers
0
The default wallpaper is automatically configured when the user first logs in. You can change what the default gets set to by editing /usr/share/config/kdesktoprc or some such file (that is the file on my KDE 4 system; it may vary for OpenSUSE). Something like this should work:
WALLPAPER=/path/to/new/wallpaper
sed -ir "s:\(Wallpaper\)=.*:\1=$WALLPAPER:" /usr/share/config/kdesktoprc
If you want to do the same for end-users already configured, change the path of the file to $HOME/.kde/share/config/kdesktoprc (possibly $HOME/.kde4). You'll need to restart plasma-shell after you make that change.
See also information about setting up a KDE kiosk, which may be of some use.
Elizafox
- 796
- 6
- 15
-
That would be good, but how can I do it so that it's pre-packaged? Should I replace the file in the OS itself? – PixelSpark Jul 27 '16 at 00:19
-
Another way is: `dcop kdesktop KBackgroundIface setWallpaper /path/to/mywallpaper.jpg 6` (Taken from LinuxForums) – SailorCire Jul 27 '16 at 21:08
-
Also @PixelSpark in SuSE Studio, you used to be able to have scripts run during Kiwi, poke around there. – SailorCire Jul 27 '16 at 21:09
-
@SailorCire Is that a command to run or a way to edit the file mentioned in the answer? – PixelSpark Jul 28 '16 at 13:20
-
@SailorCire Doesn't give me the option. Only on every boot and upon building. – PixelSpark Jul 28 '16 at 13:21