Add 'theme-switcher.install'

This commit is contained in:
Tio TROM 2022-09-14 17:35:53 +02:00
parent 0ffefb7c31
commit d9b5e98ddc
1 changed files with 14 additions and 0 deletions

14
theme-switcher.install Normal file
View File

@ -0,0 +1,14 @@
pre_install() {
if [ -e /usr/bin/theme-switcher ]; then
rm -f /usr/bin/theme-switcher
echo "Removed de-packaged TROMjaro Theme switcher"
fi
if [ -e "$HOME/.local/share/applications/theme-switcher.desktop" ]; then
rm -f "$HOME/.local/share/applications/theme-switcher.desktop"
echo "Removed de-packaged TROMjaro Theme switcher Desktop file"
fi
if [ -e "$HOME/.local/share/Theme-Switcher/" ]; then
rm -rf "$HOME/.local/share/Theme-Switcher/"
echo "Removed de-packaged TROMjaro Theme switcher directory"
fi
}