Make nogroups work on nvidia again

Remove workaround from commit 623e68216 ("temporary fix for
nvidia/nogroups/noroot issue (#3644, #841)", 2020-10-02) and from commit
cb460c32c ("more nvidia (#3644)", 2020-10-03).

The handling of the "render" and "video" groups is separate from
`nogroups` now, so disabling `nogroups` on nvidia shouldn't be necessary
anymore.  See the previous 2 commits for details.

See also the discussion on PR #4632.
This commit is contained in:
Kelvin M. Klann 2021-11-29 01:47:56 -03:00
parent a72f536122
commit 6ddedeba01

View file

@ -416,13 +416,7 @@ int profile_check_line(char *ptr, int lineno, const char *fname) {
return 0;
}
else if (strcmp(ptr, "nogroups") == 0) {
// nvidia cards require video group; disable nogroups
if (access("/dev/nvidiactl", R_OK) == 0 && arg_no3d == 0) {
fwarning("Warning: NVIDIA card detected, nogroups command disabled\n");
arg_nogroups = 0;
}
else
arg_nogroups = 1;
arg_nogroups = 1;
return 0;
}
else if (strcmp(ptr, "nosound") == 0) {