mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-69940 Reveal log broken [fix2]
This commit is contained in:
@@ -184,7 +184,12 @@ public class ShowFilePathAction extends AnAction {
|
||||
|
||||
args = new String[] {"osascript", "-e", script};
|
||||
} else {
|
||||
args = new String[] {"explorer", String.format("/select,\"%s\"", path)};
|
||||
if (path.indexOf(' ') >= 0) {
|
||||
args = new String[]{"explorer", String.format("/select,\"%s\"", path.substring(0, path.indexOf(' '))),
|
||||
String.format("\"%s\"", path.substring(path.indexOf(' ') + 1))};
|
||||
} else {
|
||||
args = new String[]{"explorer", String.format("/select,\"%s\"", path)};
|
||||
}
|
||||
}
|
||||
|
||||
runtime.exec(args);
|
||||
|
||||
Reference in New Issue
Block a user