Remove .desktop files on uninstall
authorAdrian Iain Lam <adrianiainlam@users.noreply.github.com>
Tue, 19 Sep 2017 09:39:37 +0000 (17:39 +0800)
committerAdrian Iain Lam <adrianiainlam@users.noreply.github.com>
Tue, 19 Sep 2017 09:39:37 +0000 (17:39 +0800)
debian/changelog
debian/postrm

index 97e271d..b52f0ba 100644 (file)
@@ -1,4 +1,10 @@
-indicator-keyboard-led (1.1-1) unstable; urgency=medium
+indicator-keyboard-led (1.1-2) xenial; urgency=medium
+
+  * Remove files on postrm
+
+ -- Adrian I Lam <me@adrianiainlam.tk>  Tue, 19 Sep 2017 17:34:40 +0800
+
+indicator-keyboard-led (1.1-1+xenial0) xenial; urgency=medium
 
   * Initial release (Closes: #2)
 
index 4827dad..620b59c 100755 (executable)
@@ -1,5 +1,12 @@
 #!/bin/sh -e
 
+if [ -e /usr/share/applications/indicator-keyboard-led.desktop ]; then
+    rm /usr/share/applications/indicator-keyboard-led.desktop
+fi
+if [ -e /etc/xdg/autostart/indicator-keyboard-led.desktop ]; then
+    rm /etc/xdg/autostart/indicator-keyboard-led.desktop
+fi
+
 if [ "$1" = "purge" -a -e /usr/share/debconf/confmodule ]; then
     . /usr/share/debconf/confmodule
     db_purge