Skip to content
Discussion options

You must be logged in to vote

Just let me get the point, so you are saying that the restriction on the json file will be overridden by the dialog api thus I need to check the paths on rust.
Is that correct?

Yes.

Do you have an example for changing the scope via rust?

Hmm, i don't think i have anything with context, but essentially once you have access to an AppHandle (for example in commands) you essentially do app_handle.fs_scope().allow_file(path) or any of these apis: https://docs.rs/tauri/latest/tauri/scope/struct.FsScope.html (should be the same for v2)

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@IdoPractical
Comment options

@FabianLars
Comment options

@IdoPractical
Comment options

@FabianLars
Comment options

Answer selected by IdoPractical
@IdoPractical
Comment options

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