Commit 06b1c77b authored by Dylan Araps's avatar Dylan Araps

gpu: Fix windows issue. See: #1759

parent 1c954ec5
......@@ -2561,12 +2561,14 @@ get_gpu() {
while read -r line; do
line=$(trim "$line")
[[ -z $win_gpu ]] || [[ -z "$line" ]] && {
win_gpu=1
case $line in
*Caption*|'')
continue
}
*)
prin "${subtitle:+${subtitle}${gpu_name}}" "$line"
;;
esac
done < <(wmic path Win32_VideoController get caption)
;;
......
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