From 9ff2307f1eea531a5b4cffc848b1f2f793b88fae Mon Sep 17 00:00:00 2001 From: Juerg Haefliger Date: Wed, 18 May 2022 09:44:37 +0200 Subject: [PATCH] Fix incorrect default profile path (#125) With Firefox, there can be multiple Install sections and the last one seems to be the default. Signed-off-by: Juerg Haefliger --- __init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__init__.py b/__init__.py index d478ffd..0c3d965 100755 --- a/__init__.py +++ b/__init__.py @@ -536,8 +536,8 @@ def get_default_profile(user_data_path): profile_path = None for section in config.sections(): if section.startswith('Install'): + # Use that last Install section profile_path = config[section].get('Default') - break # in ff 72.0.1, if both an Install section and one with Default=1 are present, the former takes precedence elif config[section].get('Default') == '1' and not profile_path: profile_path = config[section].get('Path')