mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-29 10:20:11 +01:00
They require a tty or X11 displays, thus are not suitable for headless runs (such as in mock). Furthermore, they die with the tty or X11 session, which is somehow late -- a lot of them may accumulate. Let's kill them right away.
9 lines
171 B
Bash
Executable file
9 lines
171 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Spawn DBus if there's none
|
|
if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
|
|
eval `dbus-launch --sh-syntax`
|
|
trap "kill $DBUS_SESSION_BUS_PID" EXIT
|
|
fi
|
|
|
|
"$@"
|