diff --git a/wsl-open.sh b/wsl-open.sh index 9e19c84..c8602f1 100755 --- a/wsl-open.sh +++ b/wsl-open.sh @@ -187,7 +187,7 @@ done shift $(( OPTIND - 1 )) # Open file -File=$1 +File=${1#file://} if [[ -n $File ]]; then if [[ -e $File ]]; then # File or directory