diff options
| author | Calvin Lee <pounce@integraldoma.in> | 2026-02-03 14:51:08 +0000 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2026-02-03 16:07:39 +0100 |
| commit | 845cdb190f0c577789425cd9ea4772bd2fcfc836 (patch) | |
| tree | dc79664eb88461a6ca867bd587d4737f70adaa04 | |
| parent | 992d201512a26b49f070f22b32e988d2bd51105e (diff) | |
sway: add details to unsupported gpu nag
| -rw-r--r-- | sway/main.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sway/main.c b/sway/main.c index e5dc497b..a9438926 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); |
