Class WinFirefoxProfileSource

java.lang.Object
com.github.markusbernhardt.proxy.search.browser.firefox.WinFirefoxProfileSource
All Implemented Interfaces:
FirefoxProfileSource

class WinFirefoxProfileSource extends 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 Details

    • WinFirefoxProfileSource

      public WinFirefoxProfileSource()
      Constructor
  • Method Details

    • getAppFolder

      private String getAppFolder()
      Reads the current location of the app data folder from the registry.
      Returns:
      a path to the folder.
    • getProfilesIni

      public File getProfilesIni() throws IOException
      Get profiles.ini for the Windows Firefox profile
      Specified by:
      getProfilesIni in interface FirefoxProfileSource
      Returns:
      the config folder.
      Throws:
      IOException - on error.