From b79768583d9af29d2ae82dbfd916000e1b998e4d Mon Sep 17 00:00:00 2001 From: "Jinming Wu, Patrick" Date: Tue, 8 Sep 2020 02:13:23 +0800 Subject: [PATCH] wslsys: possible fix for #144 --- src/wslsys.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wslsys.sh b/src/wslsys.sh index b4bc46dd..be1d578a 100644 --- a/src/wslsys.sh +++ b/src/wslsys.sh @@ -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" }