From d4c00cbf10a79dbb125e9c074dd564a992ccc114 Mon Sep 17 00:00:00 2001 From: Connor Berry Date: Tue, 5 Jan 2021 19:37:27 -0500 Subject: [PATCH] Might have fixed it, will test tonight. --- client/pom.xml | 2 +- .../main/java/client/AWSComboBoxListener.java | 17 ++++++++--------- 2 files changed, 9 insertions(+), 10 deletions(-) diff --git a/client/pom.xml b/client/pom.xml index 74777d8..2a18e97 100644 --- a/client/pom.xml +++ b/client/pom.xml @@ -9,7 +9,7 @@ client client jar - 1.3-Stable + 1.4-Beta diff --git a/client/src/main/java/client/AWSComboBoxListener.java b/client/src/main/java/client/AWSComboBoxListener.java index 3f4808b..3297d66 100644 --- a/client/src/main/java/client/AWSComboBoxListener.java +++ b/client/src/main/java/client/AWSComboBoxListener.java @@ -1,5 +1,6 @@ package client; +import java.io.IOException; import java.util.ArrayList; import java.util.List; import java.util.stream.Collectors; @@ -153,23 +154,21 @@ private void exec(String selectedValue) { return; } String subtitlePresign = handler.generatePresignedUrlFromKey(subtitlePath).toString(); - if (!subtitlePath.equals("")){ + if (!subtitlePath.equals("")) { downloadFile(subtitlePresign, fileName); - if (exec.contains("vlc")){ - createProcessBuilder(exec, presign, "--sub-file="+fileName); + if (exec.contains("vlc")) { + createProcessBuilder(exec, presign, "--sub-file=" + fileName); } - } - else{ + } else { createProcessBuilder(exec, presign); } } } - private void createProcessBuilder(String...args){ - ProcessBuilder pb = new ProcessBuilder(args); + private void createProcessBuilder(String... args) { try { - pb.start(); - } catch (Exception e) { + Runtime.getRuntime().exec(args); + } catch (IOException e) { e.printStackTrace(); } }