aboutsummaryrefslogtreecommitdiff
path: root/river/run-river.sh
diff options
context:
space:
mode:
authorbozo.kopic <bozo@kopic.xyz>2024-01-08 18:50:10 +0100
committerbozo.kopic <bozo@kopic.xyz>2024-01-08 18:50:10 +0100
commit39abd6b00a427ac4d33564d9a00cde35abe90be8 (patch)
treec92ea389ab832929263612b556f8f141feb9ea1a /river/run-river.sh
parent52ee08731eeebed097cf2d17c76597d7ded5b038 (diff)
.
Diffstat (limited to 'river/run-river.sh')
-rwxr-xr-xriver/run-river.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/river/run-river.sh b/river/run-river.sh
new file mode 100755
index 0000000..1fb1620
--- /dev/null
+++ b/river/run-river.sh
@@ -0,0 +1,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