mirror of
https://github.com/dev-claw/vripper-project.git
synced 2026-08-19 08:35:41 +02:00
Fix open file directory on Linux when the path contains spaces (#282)
This commit is contained in:
@@ -8,7 +8,7 @@ fun openFileDirectory(path: String) {
|
|||||||
if(os.contains("Windows")) {
|
if(os.contains("Windows")) {
|
||||||
Shell32.INSTANCE.ShellExecuteW(null, WString("open"), WString(path), null, null, 1)
|
Shell32.INSTANCE.ShellExecuteW(null, WString("open"), WString(path), null, null, 1)
|
||||||
} else if(os.contains("Linux")) {
|
} else if(os.contains("Linux")) {
|
||||||
Runtime.getRuntime().exec("xdg-open $path")
|
Runtime.getRuntime().exec(arrayOf("xdg-open", path))
|
||||||
} else if(os.contains("Mac")) {
|
} else if(os.contains("Mac")) {
|
||||||
Runtime.getRuntime().exec("open -R $path")
|
Runtime.getRuntime().exec("open -R $path")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user