Remove hildon-home restart during installation. Show notice to restart device
authorArtem Garmash <artemgarmash@gmail.com>
Mon, 15 Feb 2010 23:34:18 +0000 (01:34 +0200)
committerArtem Garmash <artem.garmash@nokia.com>
Sun, 27 Jun 2010 19:13:48 +0000 (22:13 +0300)
debian/conversations-inbox-widget.postinst [new file with mode: 0644]
debian/conversations-inbox-widget.preinst [deleted file]

diff --git a/debian/conversations-inbox-widget.postinst b/debian/conversations-inbox-widget.postinst
new file mode 100644 (file)
index 0000000..031d909
--- /dev/null
@@ -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 (file)
index 9bc2270..0000000
+++ /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