From 267c6dc9247757e4fbf2f06514182bb7b3cee511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 11 Jun 2022 08:54:09 +0200 Subject: local/bin/startsway: detect systemd correctly --- local/bin/startsway | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'local') diff --git a/local/bin/startsway b/local/bin/startsway index 1639277..76545b1 100755 --- a/local/bin/startsway +++ b/local/bin/startsway @@ -18,7 +18,7 @@ export MOZ_ENABLE_WAYLAND=1 export _JAVA_AWT_WM_NONREPARENTING=1 dbus="dbus-run-session" -if command -v systemctl >/dev/null; then +if [ "$(ps -o comm= 1)" = "systemd" ]; then dbus="" fi -- cgit v1.2.3