Move back all wallpapers into /usr/share/backgrounds/kali/

Thus we don't need to change anything to kali-desktop-base. Add
bin/kde-symlinks to help generate the symlinks for the KDE wallpapers.
This commit is contained in:
Raphaël Hertzog
2020-03-24 17:25:55 +01:00
parent 607cf3a582
commit 295a26824a
116 changed files with 203 additions and 131 deletions
+8 -26
View File
@@ -7,7 +7,7 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-remov
update-alternatives --install \
/usr/share/images/vendor-logos \
vendor-logos \
/usr/share/images/kali-logos 210 \
/usr/share/images/kali-logos 200 \
--slave /usr/share/icons/vendor/64x64/emblems/emblem-vendor.png \
emblem-vendor-64 \
/usr/share/icons/desktop-base/64x64/emblems/emblem-kali.png \
@@ -25,34 +25,34 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-remov
update-alternatives --install \
/usr/share/desktop-base/active-theme \
desktop-theme \
/usr/share/desktop-base/kali-theme 210
/usr/share/desktop-base/kali-theme 200
# Desktop background alternatives
update-alternatives --install \
/usr/share/images/desktop-base/desktop-background \
desktop-background /usr/share/wallpapers/KaliLogo/contents/images/kali-logo-16x9.png 210
desktop-background /usr/share/backgrounds/kali/kali-logo-16x9.png 200
# Set up an alternative for the XML version of the background
# (for GNOME)
update-alternatives --install \
/usr/share/images/desktop-base/desktop-background.xml \
desktop-background.xml /usr/share/wallpapers/KaliLogo/gnome-background.xml 210
desktop-background.xml /usr/share/backgrounds/kali/kali-logo.xml 200
# Set up an alternative for the XML version of the lock screen
# (for GNOME)
update-alternatives --install \
/usr/share/images/desktop-base/desktop-lockscreen.xml \
desktop-lockscreen.xml /usr/share/wallpapers/KaliLight/gnome-background.xml 210
desktop-lockscreen.xml /usr/share/backgrounds/kali/kali-light.xml 200
# Set up an alternative for the wallpaper for Plasma 5/KDE
update-alternatives --install \
/usr/share/wallpapers/DebianTheme \
desktop-plasma5-wallpaper /usr/share/wallpapers/KaliLogo 210
desktop-plasma5-wallpaper /usr/share/wallpapers/KaliLogo 200
# Login theme
# Highest priority for active theme
update-alternatives --install /usr/share/images/desktop-base/login-background.svg \
desktop-login-background /usr/share/wallpapers/KaliLight/contents/kali-light.svg 210
desktop-login-background /usr/share/backgrounds/kali/kali-light.svg 200
# Set up an alternative for the GRUB background/colors config
# Highest priority for active theme
@@ -72,7 +72,7 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-remov
active_grub_second_ratio=/usr/share/grub/themes/kali/grub-${grub_second_ratio}.png
update-alternatives --install \
/usr/share/images/desktop-base/desktop-grub.png \
desktop-grub ${active_grub_first_ratio} 210 \
desktop-grub ${active_grub_first_ratio} 200 \
--slave /usr/share/desktop-base/grub_background.sh \
desktop-grub.sh /usr/share/grub/themes/kali/grub_background.sh
update-alternatives --install \
@@ -154,24 +154,6 @@ EOF
update-alternatives --remove \
desktop-grub \
/usr/share/desktop-base/kali-theme/grub/grub-16x9.png
elif dpkg --compare-versions "$2" lt-nl "2020.2.1"; then
# Remove invalid alternatives that moved to /usr/share/wallpapers/*
update-alternatives --remove \
desktop-background \
/usr/share/backgrounds/kali/kali-logo-16x9.png
update-alternatives --remove \
desktop-background.xml \
/usr/share/backgrounds/kali/kali-logo.xml
update-alternatives --remove \
desktop-login-background \
/usr/share/backgrounds/kali/kali-light.svg
update-alternatives --remove \
desktop-lockscreen.xml \
/usr/share/backgrounds/kali/kali-light.xml
fi
fi
+4 -4
View File
@@ -10,17 +10,17 @@ if [ "$1" = "remove" ]; then
# Remove background alternatives for theme packages
update-alternatives --remove \
desktop-background \
/usr/share/wallpapers/KaliLogo/contents/images/kali-logo-16x9.png
/usr/share/backgrounds/kali/kali-logo-16x9.png
# Remove desktop-background.xml alternatives
update-alternatives --remove \
desktop-background.xml \
/usr/share/wallpapers/KaliLogo/gnome-background.xml
/usr/share/backgrounds/kali/kali-logo.xml
# Remove desktop-lockscreen.xml alternatives
update-alternatives --remove \
desktop-lockscreen.xml \
/usr/share/wallpapers/KaliLight/gnome-background.xml
/usr/share/backgrounds/kali/kali-light.xml
# Remove Plasma 5/KDE wallpaper alternatives
update-alternatives --remove \
@@ -30,7 +30,7 @@ if [ "$1" = "remove" ]; then
# Remove login theme alternatives
update-alternatives --remove \
desktop-login-background \
/usr/share/wallpapers/KaliLight/contents/kali-light.svg
/usr/share/backgrounds/kali/kali-light.svg
# Remove GRUB alternatives
update-alternatives --remove \