From 845cdb190f0c577789425cd9ea4772bd2fcfc836 Mon Sep 17 00:00:00 2001 From: Calvin Lee Date: Tue, 3 Feb 2026 14:51:08 +0000 Subject: [PATCH] sway: add details to unsupported gpu nag --- sway/main.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sway/main.c b/sway/main.c index e5dc497b3..a94389266 100644 --- a/sway/main.c +++ b/sway/main.c @@ -381,14 +381,16 @@ int main(int argc, char **argv) { struct swaynag_instance nag_gpu = (struct swaynag_instance){ .args = "--type error " - "--message 'Proprietary GPU drivers are not supported by sway. Do not report issues.' ", - .detailed = false, + "--message 'Proprietary GPU drivers are not supported by sway. Do not report issues.' " + "--detailed-message", + .detailed = true, }; if (unsupported_gpu_detected && !allow_unsupported_gpu) { - if (!swaynag_spawn(config->swaynag_command, &nag_gpu)) { - sway_log(SWAY_ERROR, "Unable to start swaynag"); - } + swaynag_log(config->swaynag_command, &nag_gpu, + "To remove this message, launch sway with --unsupported-gpu " + "or set the environment variable SWAY_UNSUPPORTED_GPU=true."); + swaynag_show(&nag_gpu); } server_run(&server);