diff --git a/.profile.linux b/.profile.linux index 98513cd..bf6ad28 100644 --- a/.profile.linux +++ b/.profile.linux @@ -8,8 +8,8 @@ if [ -z "$XDG_RUNTIME_DIR" ]; then export XDG_SESSION_TYPE=wayland export XDG_CURRENT_DESKTOP=sway export LIBSEAT_BACKEND=seatd - - if [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" == '/dev/tty1' ]; then - exec dbus-run-session sway -d |& tee /tmp/sway-$UID.log - fi +fi + +if [ -z "$WAYLAND_DISPLAY" ] && [ "$(tty)" == '/dev/tty1' ] && command -v sway; then + exec dbus-run-session sway -d |& tee /tmp/sway-$UID.log fi