mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-04 12:41:50 +02:00
Fix for tasks.py
The `container.py` file has two functions that are incorrectly referenced in `tasks.py`. These are `document_to_pixels` and `pixels_to_pdf`. Renaming the args in the `tasks.py` file to appropriately reference those functions. Without these fixes the software crashes with an error of: `Error: No such command "document-to-pixels"` and `Error: No such command "pixels_to_pdf"`. The is_docker_ready function passes an invalid argument to exec_dangerzone_container. The passed argument contains a dash instead of an underscore. This creates the logic situation wherein the UI states that Docker is not installed on Linux derivatives and also issues a Failed to start docker service command line error.
This commit is contained in:
parent
7acc6ebafa
commit
7d0c96eaac
1 changed files with 2 additions and 2 deletions
|
@ -72,7 +72,7 @@ class ConvertToPixels(TaskBase):
|
||||||
def run(self):
|
def run(self):
|
||||||
self.update_label.emit("Converting document to pixels")
|
self.update_label.emit("Converting document to pixels")
|
||||||
args = [
|
args = [
|
||||||
"document-to-pixels",
|
"document_to_pixels",
|
||||||
"--document-filename",
|
"--document-filename",
|
||||||
self.common.document_filename,
|
self.common.document_filename,
|
||||||
"--pixel-dir",
|
"--pixel-dir",
|
||||||
|
@ -173,7 +173,7 @@ class ConvertToPDF(TaskBase):
|
||||||
]
|
]
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
"pixels-to-pdf",
|
"pixels_to_pdf",
|
||||||
"--pixel-dir",
|
"--pixel-dir",
|
||||||
self.common.pixel_dir.name,
|
self.common.pixel_dir.name,
|
||||||
"--safe-dir",
|
"--safe-dir",
|
||||||
|
|
Loading…
Reference in a new issue