Skip to content
Discussion options

You must be logged in to vote

The file system plugin changed and does not allow reading/writing from/to for arbitrary locations.

It does if the path is allowed on the scope which you can do via the permissions at build time, the dialog plugin (it will automatically extend the scope until the next restart, or forever if you use the persisted-scope plugin) or the fs plugin's scope rust apis.

In order to read the file, I must pass the path to the selected file to the backend via IPC. I could read the file and send the bytes back to the frontend via IPC, but since the IPC does not support shared memory, this seems rather memory intensive. Especially for large files.

Yeah, good call, especially since you'd be transport…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@danielniccoli
Comment options

@FabianLars
Comment options

Answer selected by danielniccoli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants