Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable HWP / HWPX conversion on MacOS M1 / Qubes #502

Merged
merged 3 commits into from
Aug 5, 2023
Merged

Conversation

apyrgio
Copy link
Contributor

@apyrgio apyrgio commented Aug 3, 2023

The HWP / HWPX conversion feature does not work on the following
platforms:

  • MacOS with Apple Silicon CPU
  • Native Qubes OS

For this reason, we need to:

  1. Disable it on the GUI side, by not allowing the user to select these
    files.
  2. Throw an error on the isolation provider side, in case the user
    directly attempts to convert the file (either through CLI or via
    "Open With").

Refs #494
Refs #498

@apyrgio apyrgio added this to the 0.4.2 milestone Aug 4, 2023
apyrgio added 3 commits August 5, 2023 16:50
Factor out the MIME type detection logic, so that we can use it both in
Qubes and containers.
Sometimes, LibreOffice returns with status code 0, but in reality, it
fails. It doesn't create a file, and Dangerzone does not detect this.
What happens next is that it fails in the next command, and throws an
unrelated error.

Detect that LibreOffice fails, by checking if the output file exists,
after the PDF conversion.
The HWP / HWPX conversion feature does not work on the following
platforms:

* MacOS with Apple Silicon CPU
* Native Qubes OS

For this reason, we need to:

1. Disable it on the GUI side, by not allowing the user to select these
   files.
2. Throw an error on the isolation provider side, in case the user
   directly attempts to convert the file (either through CLI or via
   "Open With").

Refs #494
Refs #498
@deeplow deeplow merged commit e3a8a65 into main Aug 5, 2023
@deeplow deeplow deleted the 494-disable-hwp branch August 9, 2023 07:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants