Disable unwanted backgrounds in gnome-background-properties
This commit is contained in:
parent
e4d3c4bfd7
commit
de194a02a1
17
debian/kali-themes.postinst
vendored
17
debian/kali-themes.postinst
vendored
@ -103,6 +103,23 @@ if [ "$1" = "configure" ]; then
|
||||
# Install remaining new files
|
||||
install_all
|
||||
fi
|
||||
# Disable some backgrounds in gnome desktop
|
||||
mkdir -p /usr/share/gnome-background-properties/disabled/
|
||||
while read file; do
|
||||
dpkg-divert --rename --package kali-themes \
|
||||
--divert "$(dirname $file)/disabled/$(basename $file)" \
|
||||
--add "$file"
|
||||
done << EOF
|
||||
/usr/share/gnome-background-properties/debian-futureprototype.xml
|
||||
/usr/share/gnome-background-properties/debian-homeworld.xml
|
||||
/usr/share/gnome-background-properties/debian-joy-inksplat.xml
|
||||
/usr/share/gnome-background-properties/debian-joy.xml
|
||||
/usr/share/gnome-background-properties/debian-lines.xml
|
||||
/usr/share/gnome-background-properties/debian-moonlight.xml
|
||||
/usr/share/gnome-background-properties/debian-softwaves.xml
|
||||
/usr/share/gnome-background-properties/debian-spacefun.xml
|
||||
/usr/share/gnome-background-properties/gnome-backgrounds.xml
|
||||
EOF
|
||||
# Configure /root/.face to have a red-background avatar
|
||||
if [ ! -e /root/.face ]; then
|
||||
cp /usr/share/kali-themes/.face-root.svg /root/.face
|
||||
|
||||
7
debian/kali-themes.postrm
vendored
7
debian/kali-themes.postrm
vendored
@ -38,6 +38,13 @@ case "$1" in
|
||||
--divert "$file.original" \
|
||||
--remove "$file"
|
||||
done
|
||||
# Recover disabled gnome backgrounds
|
||||
for file in /usr/share/gnome-background-properties/disabled/*; do
|
||||
dpkg-divert --rename --package kali-themes \
|
||||
--divert "$file" \
|
||||
--remove "$(echo $file | sed 's|/disabled||')"
|
||||
done
|
||||
rmdir /usr/share/gnome-background-properties/disabled/
|
||||
;;
|
||||
esac
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user