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:
David J. Meier 2020-03-28 13:52:34 -05:00 committed by GitHub
parent 7acc6ebafa
commit 7d0c96eaac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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",