use aegis-exec to call meego-confirm-text for displaying errors
authorDennis Groenen <tj.groenen@gmail.com>
Thu, 25 Oct 2012 17:26:36 +0000 (19:26 +0200)
committerDennis Groenen <tj.groenen@gmail.com>
Thu, 25 Oct 2012 17:26:36 +0000 (19:26 +0200)
debian/busybox-power.prerm

index 3659037..8c69008 100644 (file)
@@ -123,7 +123,10 @@ DISPLAY_ERRORS() {
         echo "Click \"I Agree\" to ignore the above errors/warnings. Ask for" \
           "help if you don't know what to do." >> /tmp/busybox-power-error
         echo "Please confirm the text on the screen of your device"
-        meego-confirm-text "Attention!" /tmp/busybox-power-error > /dev/null 2>&1
+        # We're too privileged to call meego-confirm-text...
+        # Our source is com.nokia.maemo, whilst m-c-t is from an unknown source
+        /usr/bin/aegis-exec meego-confirm-text "Attention!" \
+          /tmp/busybox-power-error > /dev/null 2>&1
         res=$?
         rm /tmp/busybox-power-error
         if test ! $res == 0; then exit 1; fi