Commits

Ulrich Hansen committed ca9f1e8

Bugfixing postrm and prerm. We want to leave everything as if we have never
been there... ;-)

  • Participants
  • Parent commits 8b41725

Comments (0)

Files changed (2)

File debian/postrm

             update-grub2 || true
         fi
         if which plymouth-set-default-theme > /dev/null ; then
-            plymouth-set-default-theme -r -R || true
+            plymouth-set-default-theme -r  || true
+        fi
+        if [ -x /usr/sbin/update-initramfs ]; then
+           update-initramfs -u || true
         fi
         if [ -x /usr/sbin/gdm3 ]; then
             invoke-rc.d gdm3 reload || true
 
 # Remove diversion:
 
-        mv /usr/share/desktop-base/profiles/kde-profile/share/config/ksplashrc \
-           /usr/share/desktop-base/profiles/kde-profile/share/config/ksplashrc.desktop-theme
-
         dpkg-divert --package desktop-theme-growing --remove --rename \
                     --divert /usr/share/desktop-base/profiles/kde-profile/share/config/ksplashrc.real \
                     /usr/share/desktop-base/profiles/kde-profile/share/config/ksplashrc
 
-        rm -f /usr/share/desktop-base/profiles/kde-profile/share/config/ksplashrc.desktop-theme
+# Remove Gnome wallpaper launcher:
+        rm -f /etc/xdg/autostart/growing-autostart.desktop
+# and it's small cookie file in the users home folder
+        find /home -name "desktop-theme-growing.id" -delete
+# Remove KDM configuration file
+        rm -f /etc/default/kdm.d/15_desktop-theme
     ;;
     purge|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
     ;;

File debian/prerm

 uninstall_alternatives() {
     update-alternatives --remove \
         desktop-background \
-        /usr/share/desktop-theme-growing/backgrounds/growing-background.jpg
+        /usr/share/desktop-theme-growing/backgrounds/growing-wallpaper.png
 
     update-alternatives --remove \
         desktop-background.xml \
-        /usr/share/desktop-theme-growing/backgrounds/growing-background.xml
+        /usr/share/desktop-theme-growing/backgrounds/growing-gnome-lockscreen.xml
 
     update-alternatives --remove \
         desktop-grub \
         /usr/share/desktop-theme-growing/grub/growing-grub.png
+
+    update-alternatives --remove \
+        desktop-login \
+        /usr/share/desktop-theme-growing/backgrounds/growing-login.png
+
+    update-alternatives --remove \
+        desktop-ksplash \
+        /usr/share/desktop-theme-growing/ksplash/growing-ksplash.conf
+
+    update-alternatives --remove \
+        desktop-grub-theme \
+        /usr/share/desktop-theme-growing/grub/theme/theme.txt
 }