From c65189deb0522a3acb355393de1d9a7e065d210a Mon Sep 17 00:00:00 2001 From: Xing Yang Date: Wed, 14 Sep 2022 09:55:27 +0100 Subject: [PATCH] wslview: fix a bug that it can't open urls --- src/wslview.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wslview.sh b/src/wslview.sh index b2c57951..3687f765 100644 --- a/src/wslview.sh +++ b/src/wslview.sh @@ -57,7 +57,7 @@ if [[ "$lname" != "" ]]; then properfile_full_path="$(readlink -f "${lname}")" fi debug_echo "properfile_full_path: $properfile_full_path" - cmd="\"$(wslpath -w "${properfile_full_path:-lname}" 2>/dev/null || echo "$lname")\"" + cmd="\"$(wslpath -w "${properfile_full_path:-}" 2>/dev/null || echo "$lname")\"" if [[ "$WSLVIEW_DEFAULT_ENGINE" == "powershell" ]]; then winps_exec Start "${cmd}" elif [[ "$WSLVIEW_DEFAULT_ENGINE" == "cmd" ]]; then