mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Don't let you open safe PDFs in dangerzone
This commit is contained in:
parent
e85191b498
commit
0aa7ff5f7c
1 changed files with 4 additions and 1 deletions
|
@ -242,7 +242,10 @@ class Common(object):
|
||||||
if os.path.splitext(filename)[1] == ".desktop":
|
if os.path.splitext(filename)[1] == ".desktop":
|
||||||
|
|
||||||
desktop_entry = DesktopEntry(full_filename)
|
desktop_entry = DesktopEntry(full_filename)
|
||||||
if "application/pdf" in desktop_entry.getMimeTypes():
|
if (
|
||||||
|
"application/pdf" in desktop_entry.getMimeTypes()
|
||||||
|
and desktop_entry.getName() != "dangerzone"
|
||||||
|
):
|
||||||
pdf_viewers[
|
pdf_viewers[
|
||||||
desktop_entry.getName()
|
desktop_entry.getName()
|
||||||
] = desktop_entry.getExec()
|
] = desktop_entry.getExec()
|
||||||
|
|
Loading…
Reference in a new issue