summaryrefslogtreecommitdiff
path: root/gui-wm/hyprland/files/hyprland-dbus-run-session-if-needed
blob: 2b98fe57d03a52d763c60663e558bba158799ebb (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh
# This is a copy of plasma-dbus-run-session-if-needed coming from KDE plasma
# Usage: hyprland-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} "$@"