Commit f2300d33 authored by Dylan Araps's avatar Dylan Araps

gpu [intel]: Show driver version if glxinfo isn't installed

parent 77596ea8
......@@ -1244,9 +1244,12 @@ get_gpu() {
;;
*"intel"*)
gpu="$(glxinfo | grep "Device:.*Intel")"
type -p glxinfo >/dev/null && \
gpu="$(glxinfo | grep "Device:.*Intel")"
gpu="${gpu/*Intel/Intel}"
gpu="${gpu/'(R)'}"
gpu="${gpu/'Corporation'}"
gpu="${gpu/ \(*}"
[[ -z "$(trim "$gpu")" ]] && gpu="Intel Integrated Graphics"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment