aboutsummaryrefslogtreecommitdiff
path: root/local/bin/startsway
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2022-06-11 08:54:09 +0200
committerKarel Kočí <cynerd@email.cz>2022-06-11 08:54:09 +0200
commit267c6dc9247757e4fbf2f06514182bb7b3cee511 (patch)
tree4c81950a1fd97e4324d2bc145e9a2159b7438db8 /local/bin/startsway
parentc5510367db582d1c0683f182dd0e151ea0ab3b5f (diff)
downloadmyconfigs-267c6dc9247757e4fbf2f06514182bb7b3cee511.tar.gz
myconfigs-267c6dc9247757e4fbf2f06514182bb7b3cee511.tar.bz2
myconfigs-267c6dc9247757e4fbf2f06514182bb7b3cee511.zip
local/bin/startsway: detect systemd correctly
Diffstat (limited to 'local/bin/startsway')
-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