Compare commits

..

3 Commits
2.5.5 ... 2.5.6

Author SHA1 Message Date
eyedeekay
6ac3a2eb55 Don't search the whole home directory for usable Firefoxes 2024-07-08 17:15:43 -04:00
eyedeekay
50de466282 Don't search the whole home directory for usable Firefoxes 2024-07-08 17:08:48 -04:00
eyedeekay
ad61d69be0 Update changelog 2024-07-08 17:02:39 -04:00
2 changed files with 17 additions and 5 deletions

View File

@@ -1,3 +1,10 @@
Mon, July 8
-----------
- Fix a bug which caused the profile manager to fail to detect Firefox on some systems
- Fix a bug which caused the profile manager to use an unwritable directory on some systems
- Fix a bug where if user tried to run it from the home directory, the application would make sure that no firefoxes existed in any subdirectory before running
Thu, March 7
------------

View File

@@ -608,11 +608,16 @@ public class I2PCommonBrowser {
}
public File userHomeDir() {
File hd = new File(System.getProperty("user.dir"));
if (hd == null || !hd.exists()) {
hd = new File(System.getProperty("user.home"));
File rd = new File(System.getProperty("user.dir"));
File hd = new File(System.getProperty("user.home"));
if (rd == null || !rd.exists()) {
if (hd == null || !hd.exists()) {
if (rd.getAbsolutePath().equals(hd.getAbsolutePath()))
return null;
}
return rd;
}
logger.info("Runtime directory discovered at: " + hd);
return hd;
logger.info("Runtime directory discovered at: " + rd);
return rd;
}
}