diff --git a/platform/platform-impl/src/com/intellij/ide/actions/ShowFilePathAction.java b/platform/platform-impl/src/com/intellij/ide/actions/ShowFilePathAction.java index 65ee1e6b5274..9f4699ebd105 100644 --- a/platform/platform-impl/src/com/intellij/ide/actions/ShowFilePathAction.java +++ b/platform/platform-impl/src/com/intellij/ide/actions/ShowFilePathAction.java @@ -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);