mirror of
https://github.com/Qortal/Brooklyn.git
synced 2025-02-12 02:05:54 +00:00
11 lines
292 B
Bash
11 lines
292 B
Bash
#!/bin/sh
|
|
# Usage: plasma-dbus-run-session-if-needed PROGRAM [ARGUMENTS]
|
|
# If the session bus is not available it is spawned and wrapper round our program
|
|
# Otherwise we spawn our program directly
|
|
drs=
|
|
if [ -z "${DBUS_SESSION_BUS_ADDRESS}" ]
|
|
then
|
|
drs=dbus-run-session
|
|
fi
|
|
exec ${drs} "$@"
|