mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-10 07:50:29 +01: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 changed files with 7 additions and 0 deletions
|
|
@ -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…
Add table
Reference in a new issue