From d35bd1184bbe4b67c3dc9d8bcc661bbd4cd391be Mon Sep 17 00:00:00 2001 From: "bozo.kopic" Date: Wed, 28 Oct 2026 23:12:20 +0100 Subject: . --- niri/run-niri.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'niri/run-niri.sh') diff --git a/niri/run-niri.sh b/niri/run-niri.sh index eae7cec..fda4289 100755 --- a/niri/run-niri.sh +++ b/niri/run-niri.sh @@ -4,10 +4,10 @@ exec >~/.niri.log 2>&1 export QT_QPA_PLATFORM=wayland -if ( command -v systemctl && systemctl --user is-system-running ) >/dev/null; then +if [ "$(ps -p 1 -o comm=)" = "systemd" ]; then exec niri-session -elif pgrep -U $(id -u) dbus-daemon >/dev/null; then +elif [ -n "$DBUS_SESSION_BUS_ADDRESS" ]; then exec niri --session else -- cgit v1.3.1