Debian Codegraph @

src/main/java/com/github/markusbernhardt/proxy/search/browser/firefox/OsxFirefoxProfileSource.java

raw symbols SCIP
1 package com.github.markusbernhardt.proxy.search.browser.firefox;
2
3 import java.io.File;
4
5 import com.github.markusbernhardt.proxy.util.PlatformUtil;
6
7 /*****************************************************************************
8 * Searches for Firefox profile on an OSX system. This will scan the
9 * <i>Library/Application Support/Firefox</i> folder in the users home directory
10 * to find the profiles.
11 *
12 * @author Markus Bernhardt, Copyright 2016
13 * @author Bernd Rosstauscher, Copyright 2009
14 ****************************************************************************/
15
16 // TODO 02.06.2015 bros Format has changed in newer versions of firefox.
17
18 class OsxFirefoxProfileSource implements FirefoxProfileSource {
19
20 /*************************************************************************
21 * Get profiles.ini for the Linux Firefox profile
22 ************************************************************************/
23
24 @Override
25 public File getProfilesIni() {
26 File userDir = new File(PlatformUtil.getUserHomeDir());
27 return new File(userDir, "Library" + File.separator + "Application Support" + File.separator + "Firefox"
28 + File.separator + "profiles.ini");
29 }
30
31 }