sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit 20c4d242f64f68fc89d72c364506fa7bd854904e
parent a729bda17fb25afcf043dd740e304b8c2c1302a1
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Mon, 11 Mar 2019 00:10:18 -0400

detect_proprietary: use strncmp

Only the main nvidia module needs to be blocked. Others such as
nvidiafb are benign and do not need to be blocked

Diffstat:
Msway/main.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sway/main.c b/sway/main.c @@ -91,7 +91,7 @@ void detect_proprietary(int allow_unsupported_gpu) { char *line = NULL; size_t line_size = 0; while (getline(&line, &line_size, f) != -1) { - if (strstr(line, "nvidia")) { + if (strncmp(line, "nvidia ", 7) == 0) { if (allow_unsupported_gpu) { sway_log(SWAY_ERROR, "!!! Proprietary Nvidia drivers are in use !!!");