Don't search the whole home directory for usable Firefoxes
This commit is contained in:
@ -608,11 +608,16 @@ public class I2PCommonBrowser {
|
||||
}
|
||||
|
||||
public File userHomeDir() {
|
||||
File hd = new File(System.getProperty("user.dir"));
|
||||
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()) {
|
||||
hd = new File(System.getProperty("user.home"));
|
||||
if (rd.getAbsolutePath().equals(hd.getAbsolutePath()))
|
||||
return null;
|
||||
}
|
||||
logger.info("Runtime directory discovered at: " + hd);
|
||||
return hd;
|
||||
return rd;
|
||||
}
|
||||
logger.info("Runtime directory discovered at: " + rd);
|
||||
return rd;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user