1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-08-26 09:49:24 +03:00

Merge pull request #179 from altlinux/fix_bug_44209_in_firefox_app

Added keylist handling when generating firefox settings
This commit is contained in:
Evgeny Sinelnikov
2022-12-04 04:57:25 +04:00
committed by GitHub

View File

@ -76,6 +76,7 @@ class firefox_applier(applier_frontend):
'''
Collect dictionaries from registry keys into a general dictionary
'''
excp = ['SOCKSVersion']
counts = dict()
for it_data in firefox_keys:
branch = counts
@ -90,6 +91,9 @@ class firefox_applier(applier_frontend):
branch = branch.setdefault(part, {})
#dictionary key value initialization
if it_data.type == 4:
if it_data.valuename in excp:
branch[parts[-1]] = int(it_data.data)
else:
branch[parts[-1]] = self.get_boolean(it_data.data)
else:
branch[parts[-1]] = str(it_data.data).replace('\\', '/')