mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-21 10:14:41 +00:00
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:
parent
5170d3a760
commit
fb1da0eab2
|
@ -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 -- "$@"
|
||||
|
|
Loading…
Reference in a new issue