summaryrefslogtreecommitdiff
path: root/packaging/debian/70monkeysphere_use_validation_agent
blob: 1390859792f3805422fd761b3a10644767f17bd5 (plain)
  1. # /etc/X11/Xsession.d/70monkeysphere_use_validation_agent
  2. # This is a script to be sourced by Xsession. It wraps the session
  3. # startup argument with a monkeysphere-validation-agent nested
  4. # process, if available and none already exist.
  5. # Enable this system-wide by adding a line to
  6. # /etc/X11/Xsession.options that reads:
  7. # use-monkeysphere-validation-agent
  8. # Note that there is some weird interaction between this and
  9. # dbus-session at the moment: dbus-launch can start the msva just
  10. # fine, but if msva tries to start dbus-launch, dbus-launch fails
  11. # with:
  12. # Failed to waitpid() for babysitter intermediate process: No child processes
  13. # So this is placed at position 70 -- *before* the dbus Xsession
  14. # startup script, which is at 75 as of 2010-03-12, when i wrote this.
  15. # Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
  16. STARTMSVA=
  17. MSVAGENT=/usr/bin/monkeysphere-validation-agent
  18. if grep -qs ^use-monkeysphere-validation-agent "$OPTIONFILE"; then
  19. if [ -x "$MSVAGENT" ] && [ -z "$MONKEYSPHERE_VALIDATION_AGENT_SOCKET" ]; then
  20. STARTUP="$MSVAGENT $STARTUP"
  21. fi
  22. fi