pgo: prefer full-headless-sway over full-headless-cage

This commit is contained in:
heather7283 2024-12-08 13:54:45 +04:00
parent 5034209087
commit 768f254286

View file

@ -54,13 +54,10 @@ case ${mode} in
;;
auto)
# TODO: once Sway 1.6.2 has been released, prefer
# full-headless-sway
if [ -n "${WAYLAND_DISPLAY+x}" ]; then
mode=full-current-session
# elif command -v sway > /dev/null; then # Requires 1.6.2
# mode=full-headless-sway
elif command -v sway > /dev/null; then
mode=full-headless-sway
elif command -v cage > /dev/null; then
mode=full-headless-cage
else