tests: use dbus-run-session instead of dbus-launch

The dbus-run-session utility was designed to run a process within a
D-Bus session, specifically for running regressions tests and is much
better suited then dbus-launch. As an additional benefit, this avoids
any X dependencies.

https://mail.gnome.org/archives/networkmanager-list/2016-January/msg00023.html
This commit is contained in:
Michael Biebl 2016-01-21 23:11:29 +01:00 committed by Thomas Haller
parent 08bc51095c
commit a9bd5dce1c
2 changed files with 2 additions and 10 deletions

View file

@ -1,7 +1,3 @@
#!/bin/sh
# Spawn DBus
eval `dbus-launch --sh-syntax`
trap "kill $DBUS_SESSION_BUS_PID" EXIT
"$@"
dbus-run-session -- "$@"

View file

@ -1,7 +1,3 @@
#!/bin/sh
# Spawn DBus
eval `dbus-launch --sh-syntax`
trap "kill $DBUS_SESSION_BUS_PID" EXIT
"$@"
dbus-run-session -- "$@"