From: Artem Garmash Date: Mon, 15 Feb 2010 23:34:18 +0000 (+0200) Subject: Remove hildon-home restart during installation. Show notice to restart device X-Git-Url: http://git.maemo.org/git/?p=conv-inbox;a=commitdiff_plain;h=c432d99d8bdbcf8c8cf26e221049ab44926e6411;hp=8ccba7b6305602ae4a247f84e1079cec258544e8 Remove hildon-home restart during installation. Show notice to restart device --- diff --git a/debian/conversations-inbox-widget.postinst b/debian/conversations-inbox-widget.postinst new file mode 100644 index 0000000..031d909 --- /dev/null +++ b/debian/conversations-inbox-widget.postinst @@ -0,0 +1,23 @@ +#! /bin/sh + +case "$1" in + configure) + + run-standalone.sh dbus-send \ + --dest=org.freedesktop.Notifications \ + /org/freedesktop/Notifications \ + org.freedesktop.Notifications.SystemNoteInfoprint \ + string:"Restart device to complete installation" + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/debian/conversations-inbox-widget.preinst b/debian/conversations-inbox-widget.preinst deleted file mode 100644 index 9bc2270..0000000 --- a/debian/conversations-inbox-widget.preinst +++ /dev/null @@ -1,16 +0,0 @@ -#! /bin/sh - -case "$1" in - install|upgrade) - - echo "Restarting hildon-home." - killall hildon-home - rm -f "/tmp/hildon-desktop/hildon-home.stamp" - ;; - - abort-upgrade) - - ;; -esac - -exit 0