add note about dbus communication for msva
[monkeysphere.git] / packaging / debian / 70monkeysphere_use-validation-agent
index 1335458ce0bc812bb829415b6f29b3d1a6ceaa1a..2f9a4bff97d2bcc5018e7c099f6a982207281aa8 100644 (file)
 # So this is placed at position 70 -- *before* the dbus Xsession
 # startup script, which is at 75 as of 2010-03-12, when i wrote this.
 
+# this is also good, because it means that the MSVA will learn about
+# the dbus session parameters, in case we want the agent to use dbus
+# to communicate with the user.
+
 # Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
 
 STARTMSVA=
@@ -26,12 +30,12 @@ MSSYSCONFIG=/etc/monkeysphere/monkeysphere.conf
 MSUSERCONFIG="$HOME/.monkeysphere/monkeysphere.conf"
 
 if [ -x "$MSVAGENT" ] ; then
-    USEMSVAGENT=$(sh -c "USE_VALIDATION_AGENT=
-. '$MSSYSCONFIG' 2>/dev/null
-. '$MSUSERCONFIG' 2>/dev/null || :
-printf '%s' "'"$USE_VALIDATION_AGENT"')
+    USEMSVAGENT=$(USE_VALIDATION_AGENT=
+. "$MSSYSCONFIG" 2>/dev/null
+. "$MSUSERCONFIG" 2>/dev/null || :
+printf '%s' "$USE_VALIDATION_AGENT")
     
-    if [ "$USEMSVAGENT" == "true" ] ; then
+    if [ "$USEMSVAGENT" = "true" ] ; then
         STARTUP="$MSVAGENT $STARTUP"
     fi
 fi