diff --git a/src/main/java/FutureRestoreWorker.java b/src/main/java/FutureRestoreWorker.java index 3db6237..06bd62b 100644 --- a/src/main/java/FutureRestoreWorker.java +++ b/src/main/java/FutureRestoreWorker.java @@ -29,9 +29,14 @@ static void runFutureRestore(String futureRestoreFilePath, ArrayList all argsAndFR.add(0, futureRestoreFilePath); String[] allArgsArray = Arrays.copyOf(argsAndFR.toArray(), argsAndFR.toArray().length, String[].class); + String homeDirectory = System.getProperty("user.home"); + File frGuiDirectory = new File(homeDirectory + "/FutureRestoreGUI"); + ProcessBuilder processBuilder = new ProcessBuilder(); processBuilder.command(allArgsArray); processBuilder.redirectErrorStream(true); + processBuilder.directory(frGuiDirectory); + futureRestoreProcess = processBuilder.start(); futureRestoreProcess.getOutputStream().close(); @@ -41,7 +46,6 @@ static void runFutureRestore(String futureRestoreFilePath, ArrayList all BufferedReader reader = new BufferedReader(new InputStreamReader(futureRestoreProcess.getInputStream())); //Log automatically - String homeDirectory = System.getProperty("user.home"); File frGuiLogsDirectory = new File(homeDirectory + "/FutureRestoreGUI/logs"); if (!frGuiLogsDirectory.exists()) frGuiLogsDirectory.mkdir(); diff --git a/src/main/java/MainMenu.java b/src/main/java/MainMenu.java index 011f9a7..97b4254 100644 --- a/src/main/java/MainMenu.java +++ b/src/main/java/MainMenu.java @@ -26,7 +26,7 @@ import java.util.regex.Pattern; public class MainMenu { - static String futureRestoreGUIVersion = "1.71"; + static String futureRestoreGUIVersion = "1.72"; private JButton selectBlobFileButton; private JButton selectTargetIPSWFileButton; diff --git a/src/main/META-INF/MANIFEST.MF b/src/main/resources/META-INF/MANIFEST.MF similarity index 100% rename from src/main/META-INF/MANIFEST.MF rename to src/main/resources/META-INF/MANIFEST.MF