1 # /etc/X11/Xsession.d/70monkeysphere_use_validation_agent
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.
7 # Enable this system-wide by adding a line to
8 # /etc/X11/Xsession.options that reads:
9 # use-monkeysphere-validation-agent
11 # Note that there is some weird interaction between this and
12 # dbus-session at the moment: dbus-launch can start the msva just
13 # fine, but if msva tries to start dbus-launch, dbus-launch fails
16 # Failed to waitpid() for babysitter intermediate process: No child processes
18 # So this is placed at position 70 -- *before* the dbus Xsession
19 # startup script, which is at 75 as of 2010-03-12, when i wrote this.
21 # Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
24 MSVAGENT=/usr/bin/monkeysphere-validation-agent
26 if grep -qs ^use-monkeysphere-validation-agent "$OPTIONFILE"; then
27 if [ -x "$MSVAGENT" ] && [ -z "$MONKEYSPHERE_VALIDATION_AGENT_SOCKET" ]; then
28 STARTUP="$MSVAGENT $STARTUP"