Fix kali-desktop-base install scripts
This commit is contained in:
Vendored
+28
-5
@@ -30,29 +30,29 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-remov
|
||||
# Desktop background alternatives
|
||||
update-alternatives --install \
|
||||
/usr/share/images/desktop-base/desktop-background \
|
||||
desktop-background /usr/share/backgrounds/kali/kali-logo-16x9.png 200
|
||||
desktop-background /usr/share/desktop-base/kali-theme/wallpaper/contents/images/3840x2160.png 210
|
||||
|
||||
# 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/backgrounds/kali/kali-logo.xml 200
|
||||
desktop-background.xml /usr/share/desktop-base/active-theme/wallpaper/gnome-background.xml 210
|
||||
|
||||
# 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/backgrounds/kali/kali-light.xml 200
|
||||
desktop-lockscreen.xml /usr/share/desktop-base/active-theme/lockscreen/gnome-background.xml 210
|
||||
|
||||
# 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 200
|
||||
desktop-plasma5-wallpaper /usr/share/desktop-base/active-theme/wallpaper 210
|
||||
|
||||
# Login theme
|
||||
# Highest priority for active theme
|
||||
update-alternatives --install /usr/share/images/desktop-base/login-background.svg \
|
||||
desktop-login-background /usr/share/backgrounds/kali/kali-light.svg 200
|
||||
desktop-login-background /usr/share/desktop-base/active-theme/login/background.svg 210
|
||||
|
||||
# Set up an alternative for the GRUB background/colors config
|
||||
# Highest priority for active theme
|
||||
@@ -154,6 +154,29 @@ 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.3"; then
|
||||
# Remove invalid alternatives that moved to /usr/share/desktop-base/active-theme/*
|
||||
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-lockscreen.xml \
|
||||
/usr/share/backgrounds/kali/kali-light.xml
|
||||
|
||||
update-alternatives --remove \
|
||||
desktop-plasma5-wallpaper \
|
||||
/usr/share/wallpapers/KaliLogo
|
||||
|
||||
update-alternatives --remove \
|
||||
desktop-login-background \
|
||||
/usr/share/backgrounds/kali/kali-light.svg
|
||||
|
||||
fi
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user