From 8d9faec31577db7ecb1950fc8e6d1d14cc07f6b2 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Fri, 21 Jan 2022 12:02:24 +0100 Subject: [PATCH] Make `explorer work without arguments as well --- utils/bin/explorer | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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