Merge remote branch 'dkg/master'
[monkeysphere.git] / packaging / debian / 70monkeysphere_use-validation-agent
index 4723f5cdd34f9b8a861afb502653848e57db91c2..c3135a82886f368d62f6b3e1380079ecc39fb022 100644 (file)
@@ -1,4 +1,4 @@
-# /etc/X11/Xsession.d/70monkeysphere_use_validation_agent
+# /etc/X11/Xsession.d/70monkeysphere_use-validation-agent
 
 # This is a script to be sourced by Xsession.  It wraps the session
 # startup argument with a monkeysphere-validation-agent nested
 # 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=
 MSVAGENT=/usr/bin/monkeysphere-validation-agent
 MSSYSCONFIG=/etc/monkeysphere/monkeysphere.conf
 MSUSERCONFIG="$HOME/.monkeysphere/monkeysphere.conf"
 
 if [ -x "$MSVAGENT" ] ; then
-    USEMSVAGENT=$(USE_VALIDATION_AGENT=
+   if [ "$(USE_VALIDATION_AGENT=
 . "$MSSYSCONFIG" 2>/dev/null
 . "$MSUSERCONFIG" 2>/dev/null || :
-printf '%s' "$USE_VALIDATION_AGENT")
-    
-    if [ "$USEMSVAGENT" = "true" ] ; then
+printf '%s' "$USE_VALIDATION_AGENT")" = "true" ] ; then
         STARTUP="$MSVAGENT $STARTUP"
     fi
 fi