Merge pull request #50 from zeGolem/gpu-fix
gpu: forced LANG environement variable to en_US before running lshw
This commit is contained in:
commit
937dfc1ac5
1 changed files with 1 additions and 0 deletions
|
@ -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");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue