diff options
author | Karel Kočí <cynerd@email.cz> | 2022-06-11 08:54:09 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2022-06-11 08:54:09 +0200 |
commit | 267c6dc9247757e4fbf2f06514182bb7b3cee511 (patch) | |
tree | 4c81950a1fd97e4324d2bc145e9a2159b7438db8 | |
parent | c5510367db582d1c0683f182dd0e151ea0ab3b5f (diff) | |
download | myconfigs-267c6dc9247757e4fbf2f06514182bb7b3cee511.tar.gz myconfigs-267c6dc9247757e4fbf2f06514182bb7b3cee511.tar.bz2 myconfigs-267c6dc9247757e4fbf2f06514182bb7b3cee511.zip |
local/bin/startsway: detect systemd correctly
-rwxr-xr-x | local/bin/startsway | 2 |
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 |