mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Merge pull request #75 from Jackymancs4-Fork/hotfix/CFBundleName-missing
Check if CFBundleName exist
This commit is contained in:
commit
197644a6e5
1 changed files with 1 additions and 1 deletions
|
@ -369,7 +369,7 @@ class GlobalCommon(object):
|
|||
plist_data = f.read()
|
||||
plist_dict = plistlib.loads(plist_data)
|
||||
|
||||
if plist_dict["CFBundleName"] != "Dangerzone":
|
||||
if plist_dict.get("CFBundleName") and plist_dict["CFBundleName"] != "Dangerzone":
|
||||
pdf_viewers[plist_dict["CFBundleName"]] = bundle_identifier
|
||||
|
||||
elif platform.system() == "Linux":
|
||||
|
|
Loading…
Reference in a new issue