Bug#831730: Fixed in svn
tag -1 pending
Hi Raphaël,
I’ve committed something equivalent to your proposal, with the additional check that I only set the wallpaper to the Debian theme if it currently has the default setup, to avoid overriding user preferences.
d = desktops()
for (i in d) {
// Only set up the wallpaper if the plugin is the default.
// Otherwise it means the user chose another plugin and we don’t want to override that.
if (d[i].wallpaperPlugin == 'org.kde.image') {
d[i].currentConfigGroup = Array('Wallpaper', 'org.kde.image', 'General')
if (!d[i].readConfig('Image')) {
// Only set up the wallpaper if the wallpaper image is empty (=default).
// Otherwise it means the user selected a picture and we don’t want to override that.
d[i].writeConfig('Image', 'DebianTheme');
}
}
}
Cheers,
--Aurélien
Reply to: