aboutsummaryrefslogtreecommitdiff
path: root/river/run-river.sh
blob: 1fb1620cf2f2ba69b5dec465466f1e6e9c9d07d4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

exec > ~/.river.log 2>&1

if ( ( command -v systemctl && systemctl --user is-system-running ) ||
     pgrep -U $(id -u) dbus-daemon ) > /dev/null; then
    exec river
else
    exec dbus-run-session -- river
fi