All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.markusbernhardt.proxy.search.browser.firefox.LinuxFirefoxProfileSource Maven / Gradle / Ivy

Go to download

Proxy Vole is a Java library to auto detect the platform network proxy settings.

There is a newer version: 1.0.5
Show newest version
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 Linux / Unix base system. This will scan
 * the .mozilla folder in the users home directory to find the profiles.
 *
 * @author Bernd Rosstauscher ([email protected]) Copyright 2009
 ****************************************************************************/

// TODO 02.06.2015 bros Format has changed in newer versions of firefox.

class LinuxFirefoxProfileSource implements FirefoxProfileSource {

    /*************************************************************************
     * Get profiles.ini for the Linux Firefox profile
     ************************************************************************/

    @Override
    public File getProfilesIni() {
        File userDir = new File(PlatformUtil.getUserHomeDir());
        return new File(userDir, ".mozilla" + File.separator + "firefox" + File.separator + "profiles.ini");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy