From: Svjatoslav Agejenko Date: Thu, 22 Aug 2013 14:21:37 +0000 (+0300) Subject: always open directory in the new window X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=558c66771b80d735e2d3cfe75cea6643535e21ba;p=instantlauncher.git always open directory in the new window --- 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);