log a little more

Former-commit-id: e023469b93
Former-commit-id: 86f860faec8802ec92abb8a65b376013a2bbe5bc
This commit is contained in:
idk
2022-08-21 17:56:56 -04:00
parent c3cbfa6f26
commit 26b83c9b5e
4 changed files with 16 additions and 5 deletions

View File

@ -70,7 +70,14 @@ public class I2PFirefox {
new File(programFiles86, "Waterfox/").toString(),
new File(programFiles, "Librewolf/").toString(),
};
String[] exes = new String[]{"firefox.exe", "firefox-bin.exe", "firefox-esr.exe", "waterfox.exe", "waterfox-bin.exe", "librewolf.exe"};
String[] exes = new String[]{
"firefox.exe",
"firefox-bin.exe",
"firefox-esr.exe",
"waterfox.exe",
"waterfox-bin.exe",
"librewolf.exe",
};
String[] exePath = new String[path.length * exes.length];
int i = 0;
for (String s : path) {
@ -200,8 +207,10 @@ public class I2PFirefox {
for (String firefox : firefoxes) {
File firefoxFile = new File(firefox);
if (firefoxFile.exists()) {
System.out.println("Found valid firefox at " + firefox);
validFirefoxes.add(firefox);
}
System.out.println("firefox at " + firefox + "does not exist");
}
return validFirefoxes.toArray(new String[validFirefoxes.size()]);
}