Skip to content

how to get appdir from rust code? #5319

Answered by FabianLars
dassio asked this question in Q&A
Discussion options

You must be logged in to vote

https://docs.rs/tauri/latest/tauri/api/path/fn.app_dir.html or for easier use: https://docs.rs/tauri/latest/tauri/struct.PathResolver.html#method.app_dir
the latter can be used via an instance of App, AppHandle and Window - something like this:

let appdir = app_handle.path_resolver().app_dir().unwrap();

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@dassio
Comment options

Answer selected by FabianLars
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