Class WinFirefoxProfileSource
- java.lang.Object
-
- com.github.markusbernhardt.proxy.search.browser.firefox.WinFirefoxProfileSource
-
- All Implemented Interfaces:
FirefoxProfileSource
class WinFirefoxProfileSource extends java.lang.Object implements FirefoxProfileSource
Finds the Firefox profile on Windows platforms. On Windows the profiles are located in the users appdata directory under:Mozilla\Firefox\Profiles\
The location of the appdata folder is read from the windows registry.
-
-
Constructor Summary
Constructors Constructor Description WinFirefoxProfileSource()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private java.lang.String
getAppFolder()
Reads the current location of the app data folder from the registry.java.io.File
getProfilesIni()
Get profiles.ini for the Windows Firefox profile
-
-
-
Method Detail
-
getAppFolder
private java.lang.String getAppFolder()
Reads the current location of the app data folder from the registry.- Returns:
- a path to the folder.
-
getProfilesIni
public java.io.File getProfilesIni() throws java.io.IOException
Get profiles.ini for the Windows Firefox profile- Specified by:
getProfilesIni
in interfaceFirefoxProfileSource
- Returns:
- the config folder.
- Throws:
java.io.IOException
- on error.
-
-