Less tr and grep to find driver version

pull/446/head
Alessandro Toia 3 years ago
parent 8f97722c57
commit c16332eddf

@ -608,7 +608,7 @@ void init_system_info(){
trim(os);
gpu = exec("lspci | grep VGA | head -n1 | awk -vRS=']' -vFS='[' '{print $2}' | sed '/^$/d' | tail -n1");
trim(gpu);
driver = exec("glxinfo | grep 'OpenGL version' | sed 's/^.*: //' | tr -s ' ' '\n' | grep -v '(' | grep -v ')' | tr '\n' ' ' | cut -c 1-");
driver = exec ("glxinfo | grep 'OpenGL version' |sed 's/^.*: //' | sed 's/([^()]*)//g' | tr -s ' '");
trim(driver);
// Get WINE version

Loading…
Cancel
Save