Source /tmp/session_bus_address.user before invoking dbus-send in postinst script
[harmattan/cameraplus] / debian / cameraplus.postinst
index efcdf58..582e0b0 100755 (executable)
@@ -1,7 +1,10 @@
 #!/bin/sh
 
+set -e
+
 case "$1" in
     configure)
+        source /tmp/session_bus_address.user
         /usr/bin/dbus-send --print-reply --dest=com.meego.core.MNotificationManager \
         /notificationmanager com.meego.core.MNotificationManager.addNotification \
         uint32:0 uint32:0 string:'device' \