[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

desktop-base: Integration with KDE plasma on debian testing no longer works



Package: desktop-base
Version: 10.0.3
Severity: important

When KDE plasma desktop is installed on Debian testing (currently plasma 5.17.5) the wallpaper you get is not the one set by desktop-base but KDE's default. So,
it seems like the integration provided by the script
/usr/share/plasma/shells/org.kde.plasma.desktop/contents/updates/desktop-base.js
is not properly working and would need an update for the newer plasma-desktop
versions.

$ cat /usr/share/plasma/shells/org.kde.plasma.desktop/contents/updates/desktop-base.js
...
// This script is provided by desktop-base
// It is run by Plasma 5 on upgrade.
// Plasma checks that the script is only run once for each version.
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');
       }
   }
}

Apparently the condition inside `if (!d[i].readConfig('Image')) {` is always false.
Removing that if solves the issue.

-- System Information:
Debian Release: bullseye/sid
 APT prefers testing
 APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 5.4.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE= (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages desktop-base depends on:
ii  fonts-quicksand  0.2016-2
ii  librsvg2-common  2.46.4-1

Versions of packages desktop-base recommends:
ii  plymouth-label  0.9.4-2

Versions of packages desktop-base suggests:
ii  kde-standard  5:104

-- no debconf information

--
Daniel Ruiz de Alegría
drasite.com



Reply to: