From 6441885d148af973979494a0b080ea6c0a8bcb49 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Hertzog?= Date: Mon, 2 Nov 2020 21:43:30 +0100 Subject: [PATCH] Use kali-wallpapers-2020.4 to store the new wallpapers Keep the "default" symlink for XFCE in the kali-themes-common package. We need to embed the version in the package name if we want the old wallpapers to coexist with the new ones on user's systems to avoid breaking their non-default backgrounds. --- bin/update-default-backgrounds | 2 +- debian/control | 19 +++++++++++++++---- ...install => kali-wallpapers-2020.4.install} | 0 .../backgrounds/kali-16x9/default | 0 4 files changed, 16 insertions(+), 5 deletions(-) rename debian/{kali-wallpapers.install => kali-wallpapers-2020.4.install} (100%) rename {wallpapers => share}/backgrounds/kali-16x9/default (100%) diff --git a/bin/update-default-backgrounds b/bin/update-default-backgrounds index b09455dd..1aafc644 100755 --- a/bin/update-default-backgrounds +++ b/bin/update-default-backgrounds @@ -7,7 +7,7 @@ LOGIN_BACKGROUND=$2 # xfce background if [ -e wallpapers/backgrounds/kali-16x9/$DESKTOP_BACKGROUND.png ]; then mv -v wallpapers/backgrounds/kali-16x9/$DESKTOP_BACKGROUND.png \ - wallpapers/backgrounds/kali-16x9/default + share/backgrounds/kali-16x9/default fi # login/lockscreen diff --git a/debian/control b/debian/control index 784f1528..53d16f5f 100644 --- a/debian/control +++ b/debian/control @@ -12,7 +12,7 @@ Vcs-Browser: https://gitlab.com/kalilinux/packages/kali-themes Package: kali-themes-common Architecture: all -Depends: kali-wallpapers (= ${source:Version}), +Depends: kali-wallpapers-2020.4 (= ${source:Version}), ${misc:Depends} Suggests: gtk2-engines-murrine Breaks: gnome-theme-kali (<< 2019.4), desktop-base (<< 10.0.3+kali2) @@ -60,12 +60,23 @@ Description: Configure all desktops to use the Kali theme provides configuration files and other settings for each desktop so that they use the Kali theme by default. -Package: kali-wallpapers +# The package is versioned so that it stays around on end-user systems whenever +# we introduce a new set of wallpapers, thus not breaking the user's background +# if he selected a non-default wallpaper. The binary package can possibly be +# moved to kali-legacy-wallpapers. +# +# Note: On next version bump, we can get rid of the breaks/replaces. +Package: kali-wallpapers-2020.4 Architecture: all Depends: ${misc:Depends} Breaks: kali-themes-common (<< 2020.4.3) -Description: Default wallpapers for kali - This package contains multiple wallpapers for Kali. +Replaces: kali-themes-common (<< 2020.4.3) +Description: Default wallpapers for Kali Linux + This package contains multiple wallpapers for Kali Linux. + . + If you have multiple kali-wallpapers-YYYY.X packages on your system, you can + remove them all except the latest which is a dependency of kali-themes-common + and is thus required. Package: gnome-theme-kali Architecture: all diff --git a/debian/kali-wallpapers.install b/debian/kali-wallpapers-2020.4.install similarity index 100% rename from debian/kali-wallpapers.install rename to debian/kali-wallpapers-2020.4.install diff --git a/wallpapers/backgrounds/kali-16x9/default b/share/backgrounds/kali-16x9/default similarity index 100% rename from wallpapers/backgrounds/kali-16x9/default rename to share/backgrounds/kali-16x9/default