Source /tmp/session_bus_address.user before invoking dbus-send in postinst script
authorMohammed Sameer <msameer@foolab.org>
Sun, 15 Sep 2013 13:13:56 +0000 (16:13 +0300)
committerMohammed Sameer <msameer@foolab.org>
Sun, 15 Sep 2013 13:13:56 +0000 (16:13 +0300)
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' \