Created
August 14, 2018 20:59
-
-
Save pbhj/3b0ba2aa75b7d401c6c8ec569a4f19df to your computer and use it in GitHub Desktop.
postrm script for edubu-art
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
case "$1" in | |
remove) | |
# Restore Breathe icons diversions (we need a better way to do this) | |
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/Breathe/16x16/places/start-here.png | |
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/Breathe/22x22/places/start-here.png | |
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/Breathe/24x24/places/start-here.png | |
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/Breathe/32x32/places/start-here.png | |
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/Breathe/48x48/places/start-here.png | |
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/Breathe/scalable/places/start-here.svg | |
# Restore GartoonRedux icons diversions (we need a better way to do this) | |
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/GartoonRedux/16x16/places/distributor-logo.png | |
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/GartoonRedux/22x22/places/distributor-logo.png | |
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/GartoonRedux/24x24/places/distributor-logo.png | |
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/GartoonRedux/32x32/places/distributor-logo.png | |
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/icons/GartoonRedux/48x48/places/distributor-logo.png | |
# Restore unity distributor logo | |
dpkg-divert --quiet --rename --package edubuntu-artwork --remove /usr/share/unity/icons/launcher_bfb.png | |
# Update icon cache | |
gtk-update-icon-cache | |
# Force update the compiled glib schemas | |
glib-compile-schemas /usr/share/glib-2.0/schemas || true | |
# And same for gconf (still needed as ubuntu-artwork ships one...) | |
update-gconf-defaults | |
;; | |
esac | |
# Automatically added by dh_icons | |
if which update-icon-caches >/dev/null 2>&1 ; then | |
update-icon-caches /usr/share/icons/Breathe /usr/share/icons/ElementaryEdubuntu /usr/share/icons/GartoonRedux | |
fi | |
# End automatically added section |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment