Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make wslview always use wslpath #201

Merged
merged 9 commits into from
Oct 4, 2021
Prev Previous commit
Support opening non-files for wslview
  • Loading branch information
IsaacOscar committed Sep 21, 2021
commit fabf1b92a4edb4def50b2014c81a95a59061682c
2 changes: 1 addition & 1 deletion src/wslview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ if [[ "$lname" != "" ]]; then
[ $wslutmpbuild -ge "$BN_MAY_NINETEEN" ] || error_echo "This protocol is not supported before version 1903." 34
properfile_full_path="$(readlink -f "${lname}")"
fi
winps_exec Start "\"$(wslpath -w "$properfile_full_path")\""
winps_exec Start "\"$(wslpath -w "$properfile_full_path" 2>/dev/null || echo "$lname")\""
else
error_echo "No input, aborting" 21
fi