Merge pull request #50 from zeGolem/gpu-fix

gpu: forced LANG environement variable to en_US before running lshw
This commit is contained in:
TheDarkBug 2021-03-19 20:57:22 +01:00 committed by GitHub
commit 937dfc1ac5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -204,6 +204,7 @@ void get_info() { // get all necessary info
// gpu // gpu
int gpun = 0; // number of the gpu that the program is searching for to put in the array int gpun = 0; // number of the gpu that the program is searching for to put in the array
setenv("LANG", "en_US", 1); // force language to english
FILE *gpu; FILE *gpu;
gpu = popen("lshw -class display 2> /dev/null", "r"); gpu = popen("lshw -class display 2> /dev/null", "r");