From 558c66771b80d735e2d3cfe75cea6643535e21ba Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Thu, 22 Aug 2013 17:21:37 +0300 Subject: [PATCH] always open directory in the new window --- .../eu/svjatoslav/instantlauncher/menu/MultiLevelMenu.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/eu/svjatoslav/instantlauncher/menu/MultiLevelMenu.java b/src/main/java/eu/svjatoslav/instantlauncher/menu/MultiLevelMenu.java index 700f842..d75d224 100755 --- a/src/main/java/eu/svjatoslav/instantlauncher/menu/MultiLevelMenu.java +++ b/src/main/java/eu/svjatoslav/instantlauncher/menu/MultiLevelMenu.java @@ -135,9 +135,10 @@ public class MultiLevelMenu implements MenuListener { // Execute a command without arguments final String directoryPath = chosenFile.getAbsolutePath(); - final String[] c = new String[2]; + final String[] c = new String[3]; c[0] = "nautilus"; - c[1] = directoryPath; + c[1] = "-w"; + c[2] = directoryPath; try { Runtime.getRuntime().exec(c); -- 2.20.1