From a7cd6a3997986c56741e5ac2492f86f390722d07 Mon Sep 17 00:00:00 2001 From: Andrea Rogers Date: Tue, 15 Oct 2024 17:57:32 -0500 Subject: [PATCH] profile.linux: Start Sway on tty1 on Arch, too! The updated profile.linux also makes sure not to "exec" sway if the "command" command cannot find it. --- .profile.linux | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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