mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-05-03 11:20:34 +00:00
Fix browse command for dir
This commit is contained in:
@@ -98,11 +98,7 @@ public class DesktopHelper {
|
||||
// Windows does not support Action.BROWSE_FILE_DIR
|
||||
if (OsType.ofLocal() == OsType.WINDOWS) {
|
||||
// Explorer does not support single quotes, so use normal quotes
|
||||
if (Files.isDirectory(file)) {
|
||||
LocalExec.readStdoutIfPossible("explorer", "\"" + file + "\"");
|
||||
} else {
|
||||
LocalExec.readStdoutIfPossible("explorer", "/select,", "\"" + file + "\"");
|
||||
}
|
||||
LocalExec.readStdoutIfPossible("explorer", "/select,", "\"" + file + "\"");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user