mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-28 18:02:38 +02:00
Allow browsing for all support file types, update README to include supported file types, and update container that supports them all
This commit is contained in:
parent
46585f15a8
commit
51cd76a456
4 changed files with 20 additions and 3 deletions
15
README.md
15
README.md
|
@ -15,6 +15,21 @@ Some features:
|
||||||
- Dangerzone compresses the safe PDF to reduce file size
|
- Dangerzone compresses the safe PDF to reduce file size
|
||||||
- After converting, dangerzone lets you open the safe PDF in the PDF viewer of your choice, which allows you to open PDFs and office docs in dangerzone by default so you never accidentally open a dangerous document
|
- After converting, dangerzone lets you open the safe PDF in the PDF viewer of your choice, which allows you to open PDFs and office docs in dangerzone by default so you never accidentally open a dangerous document
|
||||||
|
|
||||||
|
Dangerzone can convert these types of document into safe PDFs:
|
||||||
|
|
||||||
|
- PDF (`.pdf`)
|
||||||
|
- Microsoft Word (`.docx`, `.doc`)
|
||||||
|
- Microsoft Excel (`.xlsx`, `.xls`)
|
||||||
|
- Microsoft PowerPoint (`.pptx`, `.ppt`)
|
||||||
|
- ODF Text (`.odt`)
|
||||||
|
- ODF Spreadsheet (`.ods`)
|
||||||
|
- ODF Presentation (`.odp`)
|
||||||
|
- ODF Graphics (`.odg`)
|
||||||
|
- Jpeg (`.jpg`, `.jpeg`)
|
||||||
|
- GIF (`.gif`)
|
||||||
|
- PNG (`.png`)
|
||||||
|
- TIFF (`.tif`, `.tiff`)
|
||||||
|
|
||||||
Dangerzone was inspired by [Qubes trusted PDF](https://blog.invisiblethings.org/2013/02/21/converting-untrusted-pdfs-into-trusted.html), but it works in non-Qubes operating systems and sandboxes the document conversion in containers instead of virtual machines (using [podman](https://podman.io/) for Linux, and Docker for macOS, for now). Podman is like docker but more secure -- it doesn't require a privileged daemon, and containers can be launched without root.
|
Dangerzone was inspired by [Qubes trusted PDF](https://blog.invisiblethings.org/2013/02/21/converting-untrusted-pdfs-into-trusted.html), but it works in non-Qubes operating systems and sandboxes the document conversion in containers instead of virtual machines (using [podman](https://podman.io/) for Linux, and Docker for macOS, for now). Podman is like docker but more secure -- it doesn't require a privileged daemon, and containers can be launched without root.
|
||||||
|
|
||||||
Set up a development environment by following [these instructions](/BUILD.md).
|
Set up a development environment by following [these instructions](/BUILD.md).
|
||||||
|
|
|
@ -33,7 +33,9 @@ class DocSelectionWidget(QtWidgets.QWidget):
|
||||||
|
|
||||||
def dangerous_doc_button_clicked(self):
|
def dangerous_doc_button_clicked(self):
|
||||||
filename = QtWidgets.QFileDialog.getOpenFileName(
|
filename = QtWidgets.QFileDialog.getOpenFileName(
|
||||||
self, "Open document", filter="Documents (*.pdf *.docx *.xlsx)",
|
self,
|
||||||
|
"Open document",
|
||||||
|
filter="Documents (*.pdf *.docx *.doc *.xlsx *.xls *.pptx *.ppt *.odt *.odg *.odp *.ops *.jpg *.jpeg *.gif *.png *.tif *.tiff)",
|
||||||
)
|
)
|
||||||
if filename[0] != "":
|
if filename[0] != "":
|
||||||
filename = filename[0]
|
filename = filename[0]
|
||||||
|
|
|
@ -16,7 +16,7 @@ class MainWindow(QtWidgets.QMainWindow):
|
||||||
self.setWindowIcon(QtGui.QIcon(self.common.get_resource_path("logo.png")))
|
self.setWindowIcon(QtGui.QIcon(self.common.get_resource_path("logo.png")))
|
||||||
|
|
||||||
self.setMinimumWidth(600)
|
self.setMinimumWidth(600)
|
||||||
self.setMinimumHeight(350)
|
self.setMinimumHeight(400)
|
||||||
|
|
||||||
# Header
|
# Header
|
||||||
logo = QtWidgets.QLabel()
|
logo = QtWidgets.QLabel()
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 59e5a6618ce391b30b9123d545124d92a223b8dc
|
Subproject commit cab99aac6a3c69609d4b8a916142227b8600a448
|
Loading…
Reference in a new issue