blob: 7c7a0304d54d3ac14d41d6d6ce1b78348c64bd9e (
plain)
- # /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
- # process, if available and none already exist.
- # Enable this system-wide by setting
- # MONKEYSPHERE_USE_VALIDATION_AGENT=true in
- # /etc/monkeysphere/monkeysphere.conf
- # Note that there is some weird interaction between this and
- # dbus-session at the moment: dbus-launch can start the msva just
- # fine, but if msva tries to start dbus-launch, dbus-launch fails
- # with:
- # Failed to waitpid() for babysitter intermediate process: No child processes
- # 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.
- # 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=$(sh -c "
- . '$MSSYSCONFIG' 2>/dev/null
- . '$MSUSERCONFIG' 2>/dev/null || :
- printf '%s' "'"$MONKEYSPHERE_USE_VALIDATION_AGENT"')
-
- if [ "$USEMSVAGENT" == "true" ] ; then
- STARTUP="$MSVAGENT $STARTUP"
- fi
- fi
|