From eba3d446d325033073ef4c15df5ea179e39372db Mon Sep 17 00:00:00 2001 From: EVgZcQvc8 <245529531+EVgZcQvc8i@users.noreply.github.com> Date: Sun, 23 Nov 2025 15:17:05 +0100 Subject: [PATCH] Fix open file directory on Linux when the path contains spaces --- vripper-gui/src/main/kotlin/me/vripper/gui/utils/CommonUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vripper-gui/src/main/kotlin/me/vripper/gui/utils/CommonUtils.kt b/vripper-gui/src/main/kotlin/me/vripper/gui/utils/CommonUtils.kt index 66768180..f807c127 100644 --- a/vripper-gui/src/main/kotlin/me/vripper/gui/utils/CommonUtils.kt +++ b/vripper-gui/src/main/kotlin/me/vripper/gui/utils/CommonUtils.kt @@ -8,7 +8,7 @@ fun openFileDirectory(path: String) { if(os.contains("Windows")) { Shell32.INSTANCE.ShellExecuteW(null, WString("open"), WString(path), null, null, 1) } else if(os.contains("Linux")) { - Runtime.getRuntime().exec("xdg-open $path") + Runtime.getRuntime().exec(arrayOf("xdg-open", path)) } else if(os.contains("Mac")) { Runtime.getRuntime().exec("open -R $path") }