Skip to content

Commit

Permalink
chore: Added a test window
Browse files Browse the repository at this point in the history
  • Loading branch information
SaptarshiSarkar12 committed Feb 16, 2024
1 parent d899bc7 commit 84eddf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion GUI/src/main/java/ui/UIController.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
import javafx.stage.Stage;
import main.Drifty_GUI;
import org.buildobjects.process.ProcBuilder;
import org.buildobjects.process.ProcResult;
import properties.OS;
import support.Job;
import support.JobHistory;
Expand Down Expand Up @@ -114,6 +113,8 @@ private void downloadUpdate() {
if (OS.isMac()) {
try {
String argument = Paths.get(tmpFolder.toString(), currentExecutablePath.getFileName().toString()).toAbsolutePath().toString();
new ConfirmationDialog("PKG start command", "The command is " + nl.repeat(2) + "open" + argument).getResponse();
M.msgUpdateInfo("The command is " + nl.repeat(2) + "open" + argument);
new ProcBuilder("open").withArgs(argument).withNoTimeout().ignoreExitStatus().run();
// ProcessBuilder startPkg = new ProcessBuilder(Paths.get(tmpFolder.toString(), currentExecutablePath.getFileName().toString()).toAbsolutePath().toString());
// startPkg.start().waitFor();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"locales":["", "und"]
}, {
"name":"com.sun.org.apache.xml.internal.serializer.XMLEntities",
"locales":["", "und"]
"locales":["und"]
}, {
"name":"com/sun/javafx/scene/control/skin/resources/controls",
"locales":["", "und"]
Expand Down

0 comments on commit 84eddf1

Please sign in to comment.