Fix open file directory on Linux when the path contains spaces (#282)

This commit is contained in:
EVgZcQvc8i
2026-04-15 22:09:15 +01:00
committed by GitHub
parent c3d07a8503
commit 562c36bf28
@@ -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")
}