From: Daniel Kahn Gillmor Date: Fri, 12 Mar 2010 21:47:58 +0000 (-0500) Subject: renaming Xsession config file to match existing pattern (underscore only separates... X-Git-Tag: monkeysphere_0.29~23 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=ab7d1c7f6c168b44e965cac34b550489e14580e9;p=monkeysphere.git renaming Xsession config file to match existing pattern (underscore only separates package from description) --- diff --git a/packaging/debian/70monkeysphere_use-validation-agent b/packaging/debian/70monkeysphere_use-validation-agent new file mode 100644 index 0000000..1335458 --- /dev/null +++ b/packaging/debian/70monkeysphere_use-validation-agent @@ -0,0 +1,37 @@ +# /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 + +STARTMSVA= +MSVAGENT=/usr/bin/monkeysphere-validation-agent +MSSYSCONFIG=/etc/monkeysphere/monkeysphere.conf +MSUSERCONFIG="$HOME/.monkeysphere/monkeysphere.conf" + +if [ -x "$MSVAGENT" ] ; then + USEMSVAGENT=$(sh -c "USE_VALIDATION_AGENT= +. '$MSSYSCONFIG' 2>/dev/null +. '$MSUSERCONFIG' 2>/dev/null || : +printf '%s' "'"$USE_VALIDATION_AGENT"') + + if [ "$USEMSVAGENT" == "true" ] ; then + STARTUP="$MSVAGENT $STARTUP" + fi +fi diff --git a/packaging/debian/70monkeysphere_use_validation_agent b/packaging/debian/70monkeysphere_use_validation_agent deleted file mode 100644 index 1335458..0000000 --- a/packaging/debian/70monkeysphere_use_validation_agent +++ /dev/null @@ -1,37 +0,0 @@ -# /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 - -STARTMSVA= -MSVAGENT=/usr/bin/monkeysphere-validation-agent -MSSYSCONFIG=/etc/monkeysphere/monkeysphere.conf -MSUSERCONFIG="$HOME/.monkeysphere/monkeysphere.conf" - -if [ -x "$MSVAGENT" ] ; then - USEMSVAGENT=$(sh -c "USE_VALIDATION_AGENT= -. '$MSSYSCONFIG' 2>/dev/null -. '$MSUSERCONFIG' 2>/dev/null || : -printf '%s' "'"$USE_VALIDATION_AGENT"') - - if [ "$USEMSVAGENT" == "true" ] ; then - STARTUP="$MSVAGENT $STARTUP" - fi -fi diff --git a/packaging/debian/monkeysphere.install b/packaging/debian/monkeysphere.install index 8e5b3f4..63a2dd7 100644 --- a/packaging/debian/monkeysphere.install +++ b/packaging/debian/monkeysphere.install @@ -1 +1 @@ -debian/70monkeysphere_use_validation_agent etc/X11/Xsession.d +debian/70monkeysphere_use-validation-agent etc/X11/Xsession.d