diff --git a/utils/bin/explorer b/utils/bin/explorer index e38b0b8..708d2fd 100644 --- a/utils/bin/explorer +++ b/utils/bin/explorer @@ -1,5 +1,9 @@ #!/bin/sh -/mnt/c/Windows/explorer.exe "$(wslpath -w "$@")" +if [ $# -gt 0 ]; then + /mnt/c/Windows/explorer.exe "$(wslpath -w "$@")" +else + /mnt/c/Windows/explorer.exe +fi # The Windows Explorer binary seems to always return 1, even though it # succesully opens the desired folder. So, executing `true` here is just a