tests: allow fallback to dbus-launch in case dbus-run-session is not available
Like on Ubuntu 12.04 which is currently used by our Travic CI setup.
This commit is contained in:
@@ -1,3 +1,10 @@
|
||||
#!/bin/sh
|
||||
|
||||
if ! which dbus-run-session &>/dev/null; then
|
||||
eval `dbus-launch --sh-syntax`
|
||||
trap "kill $DBUS_SESSION_BUS_PID" EXIT
|
||||
"$@"
|
||||
exit $?
|
||||
fi
|
||||
|
||||
dbus-run-session -- "$@"
|
||||
|
Reference in New Issue
Block a user