Skip to content

Commit

Permalink
Merge pull request #20 from CoocooFroggy/dev
Browse files Browse the repository at this point in the history
Fix for perms errors and missing depending
  • Loading branch information
CoocooFroggy authored Mar 30, 2021
2 parents d9c8684 + 7340d94 commit 677049c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/main/java/FutureRestoreWorker.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,14 @@ static void runFutureRestore(String futureRestoreFilePath, ArrayList<String> 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();
Expand All @@ -41,7 +46,6 @@ static void runFutureRestore(String futureRestoreFilePath, ArrayList<String> 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();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/MainMenu.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
File renamed without changes.

0 comments on commit 677049c

Please sign in to comment.