aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlocal/bin/startsway2
1 files changed, 1 insertions, 1 deletions
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