Set media.name to '*'.
[harmattan/cameraplus] / debian / cameraplus.postinst
index efcdf58..e38d74a 100755 (executable)
@@ -1,12 +1,15 @@
 #!/bin/sh
 
+set -e
+
 case "$1" in
     configure)
-        /usr/bin/dbus-send --print-reply --dest=com.meego.core.MNotificationManager \
+        source /tmp/session_bus_address.user
+        /usr/bin/dbus-send --dest=com.meego.core.MNotificationManager \
         /notificationmanager com.meego.core.MNotificationManager.addNotification \
         uint32:0 uint32:0 string:'device' \
         string:'' string:'Camera+ installed. Please restart your phone!' string:'' \
-        string:'icon-m-toolbar-done' uint32:0
+        string:'icon-m-toolbar-done' uint32:0 > /dev/null 2>&1
         ;;
 esac