home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / etc / X11 / Xsession.d / 70monkeysphere_use-validation-agent < prev    next >
Encoding:
Text File  |  2011-02-13  |  1.5 KB  |  43 lines

  1. # /etc/X11/Xsession.d/70monkeysphere_use-validation-agent
  2.  
  3. # This is a script to be sourced by Xsession.  It wraps the session
  4. # startup argument with a monkeysphere-validation-agent nested
  5. # process, if available and none already exist.
  6.  
  7. # Disable this system-wide by setting
  8. # USE_VALIDATION_AGENT=false in
  9. # /etc/monkeysphere/monkeysphere.conf
  10.  
  11. # Individual users can set the same environment variable in
  12. # ~/.monkeysphere/monkeysphere.conf to disable the agent for their own
  13. # X11 sessions.
  14.  
  15. # Note that there is some weird interaction between this and
  16. # dbus-session at the moment: dbus-launch can start the msva just
  17. # fine, but if msva tries to start dbus-launch, dbus-launch fails
  18. # with:
  19.  
  20. # Failed to waitpid() for babysitter intermediate process: No child processes
  21.  
  22. # So this is placed at position 70 -- *before* the dbus Xsession
  23. # startup script, which is at 75 as of 2010-03-12, when i wrote this.
  24.  
  25. # this is also good, because it means that the MSVA will learn about
  26. # the dbus session parameters, in case we want the agent to use dbus
  27. # to communicate with the user.
  28.  
  29. # Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  30.  
  31. MSVAGENT=/usr/bin/monkeysphere-validation-agent
  32. MSSYSCONFIG=/etc/monkeysphere/monkeysphere.conf
  33. MSUSERCONFIG="$HOME/.monkeysphere/monkeysphere.conf"
  34.  
  35. if [ -x "$MSVAGENT" ] ; then
  36.    if [ "$(USE_VALIDATION_AGENT=
  37. [ -r "$MSSYSCONFIG" ]  && . "$MSSYSCONFIG" 2>/dev/null || :
  38. [ -r "$MSUSERCONFIG" ] && . "$MSUSERCONFIG" 2>/dev/null || :
  39. printf '%s' "$USE_VALIDATION_AGENT")" != "false" ] ; then
  40.         STARTUP="$MSVAGENT $STARTUP"
  41.     fi
  42. fi
  43.