Skip to content

Integrate Dangerzone in Rust app? #1392

@NielDuysters

Description

@NielDuysters

Hi

I am working on a hobby-project Arti Chat which is a decentralized peer-to-peer chat messenger routed over Tor.

Recently I have implemented the ability to send images. Now I also want to support sharing PDF-files. My app is focused on security and I like Dangerzone to provide the safety for PDF-files.

But I am not sure about the best way to integrate Dangerzone in my app. My current plan is the following:

  • The feature for PDF-files is only enabled if the user has Dangerzone installed.
  • When receiving a PDF-file the bytes are written to a temporary file.
  • My app automatically uses the Dangerzone CLI to convert the PDF file in a safe format.
  • Path to the safe file is displayed in chat.

I guess this would work, but it is sub-optimal. Is there a better way to integrate Dangerzone in my app, by using it more like a kind of library instead of a separate process?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions