always open directory in the new window
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Thu, 22 Aug 2013 14:21:37 +0000 (17:21 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Thu, 22 Aug 2013 14:21:37 +0000 (17:21 +0300)
src/main/java/eu/svjatoslav/instantlauncher/menu/MultiLevelMenu.java

index 700f842..d75d224 100755 (executable)
@@ -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);