windows: Fix gpu output

This commit is contained in:
Dylan Araps 2020-10-04 18:05:18 +03:00
parent c511bcbcef
commit 71d8914ec7
No known key found for this signature in database
GPG key ID: 46D62DD9F1DE636E

View file

@ -2517,10 +2517,13 @@ get_gpu() {
"Windows")
while read -r line; do
[[ $win_gpu ]] || {
win_gpu=1
continue
}
prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")"
done < <(wmic path Win32_VideoController get caption)
gpu=${gpu//Caption}
;;
"Haiku")