fixed default path for Firefox profile and executable on Mac

This commit is contained in:
nik
2009-10-15 10:23:20 +04:00
parent 41f136134d
commit e0c494c032
@@ -162,15 +162,15 @@ public class FirefoxUtil {
private static File[] getProfilesDirs() {
final String userHome = SystemProperties.getUserHome();
if (SystemInfo.isUnix) {
return new File[] {new File(userHome, ".mozilla" + File.separator + "firefox")};
}
if (SystemInfo.isMac) {
return new File[] {
new File(userHome, "Library" + File.separator + "Mozilla" + File.separator + "Firefox"),
new File(userHome, "Library" + File.separator + "Application Support" + File.separator + "Firefox"),
new File(userHome, "Library" + File.separator + "Mozilla" + File.separator + "Firefox"),
new File(userHome, "Library" + File.separator + "Application Support" + File.separator + "Firefox"),
};
}
if (SystemInfo.isUnix) {
return new File[] {new File(userHome, ".mozilla" + File.separator + "firefox")};
}
return new File[] {
new File(userHome, "Application Data" + File.separator + "Mozilla" + File.separator + "Firefox")
};