Fix kali-desktop-base install scripts
This commit is contained in:
parent
e00bedf0b1
commit
7a13ee2bee
33
debian/kali-desktop-base.postinst
vendored
33
debian/kali-desktop-base.postinst
vendored
@ -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
|
||||
|
||||
|
||||
22
debian/kali-desktop-base.prerm
vendored
22
debian/kali-desktop-base.prerm
vendored
@ -10,27 +10,7 @@ if [ "$1" = "remove" ]; then
|
||||
# Remove background alternatives for theme packages
|
||||
update-alternatives --remove \
|
||||
desktop-background \
|
||||
/usr/share/backgrounds/kali/kali-logo-16x9.png
|
||||
|
||||
# Remove desktop-background.xml alternatives
|
||||
update-alternatives --remove \
|
||||
desktop-background.xml \
|
||||
/usr/share/backgrounds/kali/kali-logo.xml
|
||||
|
||||
# Remove desktop-lockscreen.xml alternatives
|
||||
update-alternatives --remove \
|
||||
desktop-lockscreen.xml \
|
||||
/usr/share/backgrounds/kali/kali-light.xml
|
||||
|
||||
# Remove Plasma 5/KDE wallpaper alternatives
|
||||
update-alternatives --remove \
|
||||
desktop-plasma5-wallpaper \
|
||||
/usr/share/wallpapers/KaliLogo
|
||||
|
||||
# Remove login theme alternatives
|
||||
update-alternatives --remove \
|
||||
desktop-login-background \
|
||||
/usr/share/backgrounds/kali/kali-light.svg
|
||||
/usr/share/desktop-base/kali-theme/wallpaper/contents/images/3840x2160.png
|
||||
|
||||
# Remove GRUB alternatives
|
||||
update-alternatives --remove \
|
||||
|
||||
1
share/desktop-base/kali-theme/wallpaper/contents
Symbolic link
1
share/desktop-base/kali-theme/wallpaper/contents
Symbolic link
@ -0,0 +1 @@
|
||||
/usr/share/wallpapers/KaliMesh/contents
|
||||
7
share/desktop-base/kali-theme/wallpaper/metadata.desktop
Normal file
7
share/desktop-base/kali-theme/wallpaper/metadata.desktop
Normal file
@ -0,0 +1,7 @@
|
||||
[Desktop Entry]
|
||||
Name=Kali
|
||||
|
||||
X-KDE-PluginInfo-Name=Kali
|
||||
X-KDE-PluginInfo-Author=Kali Devel Team
|
||||
X-KDE-PluginInfo-Email=devel@kali.org
|
||||
X-KDE-PluginInfo-License=GPL-3.0+
|
||||
Loading…
x
Reference in New Issue
Block a user