mirror of
https://github.com/swaywm/sway.git
synced 2026-02-04 04:06:18 -05:00
sway: add details to unsupported gpu nag
This commit is contained in:
parent
992d201512
commit
845cdb190f
1 changed files with 7 additions and 5 deletions
12
sway/main.c
12
sway/main.c
|
|
@ -381,14 +381,16 @@ int main(int argc, char **argv) {
|
||||||
|
|
||||||
struct swaynag_instance nag_gpu = (struct swaynag_instance){
|
struct swaynag_instance nag_gpu = (struct swaynag_instance){
|
||||||
.args = "--type error "
|
.args = "--type error "
|
||||||
"--message 'Proprietary GPU drivers are not supported by sway. Do not report issues.' ",
|
"--message 'Proprietary GPU drivers are not supported by sway. Do not report issues.' "
|
||||||
.detailed = false,
|
"--detailed-message",
|
||||||
|
.detailed = true,
|
||||||
};
|
};
|
||||||
|
|
||||||
if (unsupported_gpu_detected && !allow_unsupported_gpu) {
|
if (unsupported_gpu_detected && !allow_unsupported_gpu) {
|
||||||
if (!swaynag_spawn(config->swaynag_command, &nag_gpu)) {
|
swaynag_log(config->swaynag_command, &nag_gpu,
|
||||||
sway_log(SWAY_ERROR, "Unable to start swaynag");
|
"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);
|
server_run(&server);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue