Meta: Default to the SDL QEMU frontend on SerenityOS

We don't yet have anything else than SDL, and certainly not GTK.
This commit is contained in:
Tim Schumacher 2022-10-23 22:09:13 +00:00 committed by Linus Groh
parent 40165a1c40
commit 4ee0737d10
Notes: sideshowbarker 2024-07-17 05:09:51 +09:00

View file

@ -196,6 +196,8 @@ elif ! command -v wslpath >/dev/null && ("${SERENITY_QEMU_BIN}" --display help |
elif "${SERENITY_QEMU_BIN}" --display help | grep -iq cocoa; then
# QEMU for OSX seems to only support cocoa
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-cocoa,gl=off}"
elif [ "$(uname -s)" = "SerenityOS" ]; then
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-sdl,gl=off}"
else
SERENITY_QEMU_DISPLAY_BACKEND="${SERENITY_QEMU_DISPLAY_BACKEND:-gtk,gl=off}"
fi