From de305a7e58950d243b1e170cbb3df4ddbc8202e0 Mon Sep 17 00:00:00 2001 From: heather7283 Date: Tue, 19 Nov 2024 19:59:06 +0400 Subject: [PATCH] pgo: run sway with --unsupported-gpu flag Sway refuses to run if it detects an nvidia GPU on the system, causing pgo build to fail. Adding --unsupported-gpu flag disables this behaviour. --- pgo/full-headless-sway.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgo/full-headless-sway.sh b/pgo/full-headless-sway.sh index 524bf42b..8f6812b3 100755 --- a/pgo/full-headless-sway.sh +++ b/pgo/full-headless-sway.sh @@ -18,7 +18,7 @@ trap cleanup EXIT INT HUP TERM > "${sway_conf}" echo "exec '${srcdir}'/pgo/full-headless-sway-inner.sh '${srcdir}' '${blddir}'" # Run Sway. full-headless-sway-inner.sh ends with a 'swaymsg exit' -XDG_RUNTIME_DIR="${runtime_dir}" WLR_RENDERER=pixman WLR_BACKENDS=headless sway -c "${sway_conf}" +XDG_RUNTIME_DIR="${runtime_dir}" WLR_RENDERER=pixman WLR_BACKENDS=headless sway -c "${sway_conf}" --unsupported-gpu # Sway's exit code doesn't reflect our script's exit code [ -f "${blddir}"/pgo-ok ] || exit 1