src/main/java/com/github/markusbernhardt/proxy/search/browser/firefox/LinuxFirefoxProfileSource.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 Linux / Unix base system. This will scan |
| 9 | * the <i>.mozilla</i> folder in the users home directory to find the profiles. |
| 10 | * |
| 11 | * @author Markus Bernhardt, Copyright 2016 |
| 12 | * @author Bernd Rosstauscher, Copyright 2009 |
| 13 | ****************************************************************************/ |
| 14 | |
| 15 | // TODO 02.06.2015 bros Format has changed in newer versions of firefox. |
| 16 | |
| 17 | class LinuxFirefoxProfileSource implements FirefoxProfileSource { |
| 18 | |
| 19 | /************************************************************************* |
| 20 | * Get profiles.ini for the Linux Firefox profile |
| 21 | ************************************************************************/ |
| 22 | |
| 23 | @Override |
| 24 | public File getProfilesIni() { |
| 25 | File userDir = new File(PlatformUtil.getUserHomeDir()); |
| 26 | return new File(userDir, ".mozilla" + File.separator + "firefox" + File.separator + "profiles.ini"); |
| 27 | } |
| 28 | |
| 29 | } |