- Runtime.getRuntime().exec(chosenFile.getAbsolutePath());
- InstantLauncher.exitProgram();
- } catch (final IOException e) {
- new ExceptionDialog(e);
+ fileOpened = FileAssociationManager.openFile(chosenFile.getCanonicalFile());
+ if (fileOpened) {
+ InstantLauncher.exitProgram();
+ }
+ } catch (IOException e) {
+ e.printStackTrace();