diff options
Diffstat (limited to 'sway/run-sway.sh')
| -rwxr-xr-x | sway/run-sway.sh | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sway/run-sway.sh b/sway/run-sway.sh index ed0c0d7..763d83f 100755 --- a/sway/run-sway.sh +++ b/sway/run-sway.sh @@ -1,9 +1,10 @@ #!/bin/sh +exec > ~/.sway.log 2>&1 if ( ( command -v systemctl && systemctl --user is-system-running ) || pgrep -U $(id -u) dbus-daemon ) > /dev/null; then - exec sway > ~/.sway.log 2>&1 + exec sway else - exec dbus-run-session -- sway > ~/.sway.log 2>&1 + exec dbus-run-session -- sway fi |
