various: fix windows issues

This commit is contained in:
Dylan Araps 2020-10-04 19:05:03 +03:00
parent 7bf2ecee26
commit 4660ae7a53
No known key found for this signature in database
GPG Key ID: 46D62DD9F1DE636E
1 changed files with 5 additions and 3 deletions

View File

@ -1718,11 +1718,11 @@ get_de() {
Windows)
case $distro in
"Windows 10"*)
*"Windows 10"*)
de=Fluent
;;
"Windows 8"*)
*"Windows 8"*)
de=Metro
;;
@ -2517,12 +2517,14 @@ get_gpu() {
"Windows")
while read -r line; do
line=$(trim "$line")
[[ -z $win_gpu ]] || [[ -z "$line" ]] && {
win_gpu=1
continue
}
prin "${subtitle:+${subtitle}${gpu_name}}" "$(trim "$line")"
prin "${subtitle:+${subtitle}${gpu_name}}" "$line"
done < <(wmic path Win32_VideoController get caption)
;;