Esempio n. 1
0
def get_firefox_profile_folder():
    """
    Location of Firefox's default profile folder. Typically, it looks like this:
    $HOME/.mozilla/firefox/xxxxxxxx.default .
    """
    ini_file = '{home}/.mozilla/firefox/profiles.ini'.format(home=get_home_dir())
    folder = ini.read_ini('Profile0', ini_file)['path']
    return '{home}/.mozilla/firefox/{folder}'.format(home=get_home_dir(), folder=folder)
Esempio n. 2
0
def get_firefox_profile_folder():
    """
    Location of Firefox's default profile folder. Typically, it looks like this:
    $HOME/.mozilla/firefox/xxxxxxxx.default .
    """
    ini_file = '{home}/.mozilla/firefox/profiles.ini'.format(
        home=get_home_dir())
    folder = ini.read_ini('Profile0', ini_file)['path']
    return '{home}/.mozilla/firefox/{folder}'.format(home=get_home_dir(),
                                                     folder=folder)
Esempio n. 3
0
def test_read_ini():
    ini_file = '{home}/.mozilla/firefox/profiles.ini'.format(
        home=podium.get_home_dir())
    path = ini.read_ini('Profile0', ini_file)['path']
    assert re.search('.{8}\.default', path)
Esempio n. 4
0
def test_read_ini():
    ini_file = '{home}/.mozilla/firefox/profiles.ini'.format(home=podium.get_home_dir())
    path = ini.read_ini('Profile0', ini_file)['path']
    assert re.search('.{8}\.default', path)