com.github.markusbernhardt.proxy.search.browser.firefox.OsxFirefoxProfileSource Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proxy-vole Show documentation
Show all versions of proxy-vole Show documentation
Proxy Vole is a Java library to auto detect the platform network proxy settings.
package com.github.markusbernhardt.proxy.search.browser.firefox;
import java.io.File;
import com.github.markusbernhardt.proxy.util.PlatformUtil;
/*****************************************************************************
* Searches for Firefox profile on an OSX system. This will scan the Library/Application Support/Firefox folder
* in the users home directory to find the profiles.
*
* @author Markus Bernhardt, Copyright 2016
* @author Bernd Rosstauscher, Copyright 2009
****************************************************************************/
class OsxFirefoxProfileSource implements FirefoxProfileSource {
/*************************************************************************
* Get profiles.ini for the Linux Firefox profile
************************************************************************/
@Override
public File getProfilesIni() {
File userDir = new File(PlatformUtil.getUserHomeDir());
return new File(userDir, "Library" + File.separator + "Application Support" + File.separator + "Firefox"
+ File.separator + "profiles.ini");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy