X-Git-Url: http://www2.svjatoslav.eu/gitweb/?p=instantlauncher.git;a=blobdiff_plain;f=src%2Fmain%2Fjava%2Feu%2Fsvjatoslav%2Finstantlauncher%2FInstantLauncher.java;h=ae6ce503a110ef2ed212e4c0478c2fb26da9a383;hp=bb8681e33e22f67a1d8dbc58d71f8f9eb5157d8b;hb=617c93e31fc6f020323b503fe0028a8e10c746b6;hpb=aae423a70e92df60144935a4ab33a5ae0e3ae5d8 diff --git a/src/main/java/eu/svjatoslav/instantlauncher/InstantLauncher.java b/src/main/java/eu/svjatoslav/instantlauncher/InstantLauncher.java index bb8681e..ae6ce50 100755 --- a/src/main/java/eu/svjatoslav/instantlauncher/InstantLauncher.java +++ b/src/main/java/eu/svjatoslav/instantlauncher/InstantLauncher.java @@ -40,16 +40,11 @@ public class InstantLauncher { } public void openDirectory(File chosenFile) { - executeCommand(configurationManager.getConfiguration().directoryOpenCommand, chosenFile.getAbsolutePath()); + runOpeningApplication(configurationManager.getConfiguration().directoryOpenCommand, chosenFile); } - public void executeCommand(String... c) { - try { - Runtime.getRuntime().exec(c); - exitProgram(); - - } catch (final IOException e) { - new ExceptionDialog(e); - } + public void openDirectoryInTerminal(File chosenFile) { + runOpeningApplication(configurationManager.getConfiguration().directoryTerminalOpenCommand, chosenFile); } + }