Use alternatives pointing to "kali-theme" and not "active-theme"
The path with "active-theme" are already "managed" by desktop-base and we don't want an install+removal of desktop-base to mess with the alternatives that we have setup in kali-desktop-base. Restore the removal code for alternatives that were voluntarily shared with desktop-base.
This commit is contained in:
parent
35ac3d97d5
commit
65bca1ea34
8
debian/kali-desktop-base.postinst
vendored
8
debian/kali-desktop-base.postinst
vendored
@ -36,23 +36,23 @@ if [ "$1" = "configure" ] || [ "$1" = "abort-upgrade" ] || [ "$1" = "abort-remov
|
|||||||
# (for GNOME)
|
# (for GNOME)
|
||||||
update-alternatives --install \
|
update-alternatives --install \
|
||||||
/usr/share/images/desktop-base/desktop-background.xml \
|
/usr/share/images/desktop-base/desktop-background.xml \
|
||||||
desktop-background.xml /usr/share/desktop-base/active-theme/wallpaper/gnome-background.xml 210
|
desktop-background.xml /usr/share/desktop-base/kali-theme/wallpaper/gnome-background.xml 210
|
||||||
|
|
||||||
# Set up an alternative for the XML version of the lock screen
|
# Set up an alternative for the XML version of the lock screen
|
||||||
# (for GNOME)
|
# (for GNOME)
|
||||||
update-alternatives --install \
|
update-alternatives --install \
|
||||||
/usr/share/images/desktop-base/desktop-lockscreen.xml \
|
/usr/share/images/desktop-base/desktop-lockscreen.xml \
|
||||||
desktop-lockscreen.xml /usr/share/desktop-base/active-theme/lockscreen/gnome-background.xml 210
|
desktop-lockscreen.xml /usr/share/desktop-base/kali-theme/lockscreen/gnome-background.xml 210
|
||||||
|
|
||||||
# Set up an alternative for the wallpaper for Plasma 5/KDE
|
# Set up an alternative for the wallpaper for Plasma 5/KDE
|
||||||
update-alternatives --install \
|
update-alternatives --install \
|
||||||
/usr/share/wallpapers/DebianTheme \
|
/usr/share/wallpapers/DebianTheme \
|
||||||
desktop-plasma5-wallpaper /usr/share/desktop-base/active-theme/wallpaper 210
|
desktop-plasma5-wallpaper /usr/share/desktop-base/kali-theme/wallpaper 210
|
||||||
|
|
||||||
# Login theme
|
# Login theme
|
||||||
# Highest priority for active theme
|
# Highest priority for active theme
|
||||||
update-alternatives --install /usr/share/images/desktop-base/login-background.svg \
|
update-alternatives --install /usr/share/images/desktop-base/login-background.svg \
|
||||||
desktop-login-background /usr/share/desktop-base/active-theme/login/background.svg 210
|
desktop-login-background /usr/share/desktop-base/kali-theme/login/background.svg 210
|
||||||
|
|
||||||
# Set up an alternative for the GRUB background/colors config
|
# Set up an alternative for the GRUB background/colors config
|
||||||
# Highest priority for active theme
|
# Highest priority for active theme
|
||||||
|
|||||||
24
debian/kali-desktop-base.prerm
vendored
24
debian/kali-desktop-base.prerm
vendored
@ -12,13 +12,33 @@ if [ "$1" = "remove" ]; then
|
|||||||
desktop-background \
|
desktop-background \
|
||||||
/usr/share/desktop-base/kali-theme/wallpaper/contents/images/3840x2160.png
|
/usr/share/desktop-base/kali-theme/wallpaper/contents/images/3840x2160.png
|
||||||
|
|
||||||
|
# Remove desktop-background.xml alternatives
|
||||||
|
update-alternatives --remove \
|
||||||
|
desktop-background.xml \
|
||||||
|
/usr/share/desktop-base/kali-theme/wallpaper/gnome-background.xml
|
||||||
|
|
||||||
|
# Remove desktop-lockscreen.xml alternatives
|
||||||
|
update-alternatives --remove \
|
||||||
|
desktop-lockscreen.xml \
|
||||||
|
/usr/share/desktop-base/kali-theme/lockscreen/gnome-background.xml
|
||||||
|
|
||||||
|
# Remove Plasma 5/KDE wallpaper alternatives
|
||||||
|
update-alternatives --remove \
|
||||||
|
desktop-plasma5-wallpaper \
|
||||||
|
/usr/share/desktop-base/kali-theme/wallpaper
|
||||||
|
|
||||||
|
# Remove login theme alternatives
|
||||||
|
update-alternatives --remove \
|
||||||
|
desktop-login-background \
|
||||||
|
/usr/share/desktop-base/kali-theme/login/background.svg
|
||||||
|
|
||||||
# Remove GRUB alternatives
|
# Remove GRUB alternatives
|
||||||
update-alternatives --remove \
|
update-alternatives --remove \
|
||||||
desktop-grub \
|
desktop-grub \
|
||||||
/boot/grub/themes/kali/grub-4x3.png
|
/usr/share/grub/themes/kali/grub-4x3.png
|
||||||
update-alternatives --remove \
|
update-alternatives --remove \
|
||||||
desktop-grub \
|
desktop-grub \
|
||||||
/boot/grub/themes/kali/grub-16x9.png
|
/usr/share/grub/themes/kali/grub-16x9.png
|
||||||
|
|
||||||
# Remove theme package alternatives
|
# Remove theme package alternatives
|
||||||
update-alternatives --remove \
|
update-alternatives --remove \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user