Skip to content

Commit

Permalink
wslsys: possible fix for #144
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick330602 committed Sep 7, 2020
1 parent e91474e commit b797685
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wslsys.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function call_theme() {
function call_display_scaling() {
up_path="$(wslvar -s USERPROFILE)"
wslu_file_check "$(wslpath "$up_path")/wslu" "get_dpi.ps1" "?!S"
display_scaling="$(winps_exec "$(double_dash_p "$up_path")\\wslu\\get_dpi.ps1" | sed -e 's|\r||g')"
display_scaling="$(winps_exec "$(double_dash_p "$up_path" | sed -e 's| |\` |g')\\wslu\\get_dpi.ps1" | sed -e 's|\r||g')"
bc -l <<< "$(printf "%d\n" "$display_scaling")/100" | sed -e "s/\.0//g" -e "s/0*$//g"
}

Expand Down

0 comments on commit b797685

Please sign in to comment.