From: Adrian Iain Lam Date: Tue, 19 Sep 2017 09:39:37 +0000 (+0800) Subject: Remove .desktop files on uninstall X-Git-Url: https://adrianiainlam.tk/git/?a=commitdiff_plain;h=ce3d245f8ea8d231679d611dffbc0d36c9a1caef;p=indicator-keyboard-led.git Remove .desktop files on uninstall --- diff --git a/debian/changelog b/debian/changelog index 97e271d..b52f0ba 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 Tue, 19 Sep 2017 17:34:40 +0800 + +indicator-keyboard-led (1.1-1+xenial0) xenial; urgency=medium * Initial release (Closes: #2) diff --git a/debian/postrm b/debian/postrm index 4827dad..620b59c 100755 --- a/debian/postrm +++ b/debian/postrm @@ -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