File indexing completed on 2024-12-22 05:16:44

0001 #!/bin/sh
0002 # Usage: plasma-dbus-run-session-if-needed PROGRAM [ARGUMENTS]
0003 # If the session bus is not available it is spawned and wrapper round our program
0004 # Otherwise we spawn our program directly
0005 drs=
0006 if [ -z "${DBUS_SESSION_BUS_ADDRESS}" ]
0007 then
0008     drs=dbus-run-session
0009 fi
0010 exec ${drs} "$@"