aboutsummaryrefslogtreecommitdiffstats
path: root/bus/xinit
blob: 95ad1942fa2138cc58bff104bee0b1913de3a538 (plain) (blame)
1
2
3
4
5
6
7
8
9
# -*- shell-script -*-

# Create buses
if test -z "${XDG_RUNTIME_DIR}"; then
    export XDG_RUNTIME_DIR='/tmp/.~'"$(whoami)"
fi
mkdir -p "${XDG_RUNTIME_DIR}/@bus"
export BUS_DISPLAY="${XDG_RUNTIME_DIR}/@bus/display-${DISPLAY}"
bus create "${BUS_DISPLAY}"