diff options
author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2010-03-12 01:59:06 -0500 |
---|---|---|
committer | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2010-03-12 01:59:06 -0500 |
commit | 5fa86c5e80710f5a89c87be0b5d5b17d72e85c14 (patch) | |
tree | 52c8c917b7286b10bb1bb7b49a938e67faae46d1 /packaging/debian/70monkeysphere_use_validation_agent | |
parent | f49a056587718a95df2c65d47ceeef2b84334016 (diff) |
added new X session validation agent initialization script
Diffstat (limited to 'packaging/debian/70monkeysphere_use_validation_agent')
-rw-r--r-- | packaging/debian/70monkeysphere_use_validation_agent | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/packaging/debian/70monkeysphere_use_validation_agent b/packaging/debian/70monkeysphere_use_validation_agent new file mode 100644 index 0000000..1390859 --- /dev/null +++ b/packaging/debian/70monkeysphere_use_validation_agent @@ -0,0 +1,30 @@ +# /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 adding a line to +# /etc/X11/Xsession.options that reads: +# use-monkeysphere-validation-agent + +# 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 + +if grep -qs ^use-monkeysphere-validation-agent "$OPTIONFILE"; then + if [ -x "$MSVAGENT" ] && [ -z "$MONKEYSPHERE_VALIDATION_AGENT_SOCKET" ]; then + STARTUP="$MSVAGENT $STARTUP" + fi +fi |