aboutsummaryrefslogtreecommitdiff
path: root/sway/run-sway.sh
blob: 6f6fcfb4fcd18267151772c93fc3396b517a7e0c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

exec >~/.sway.log 2>&1

export QT_QPA_PLATFORM=wayland
export XDG_CURRENT_DESKTOP=sway

if [ "$(ps -p 1 -o comm=)" = "systemd" ] || [ -n "$DBUS_SESSION_BUS_ADDRESS" ]; then
    exec sway

else
    exec dbus-run-session -- sway
fi