mirror of
https://github.com/swaywm/sway.git
synced 2024-11-13 05:54:11 +01:00
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
This commit is contained in:
parent
80343587cc
commit
c01a3ca538
@ -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 !!!");
|
||||
|
Loading…
Reference in New Issue
Block a user