how to get appdir from rust code? #5319
-
for js there is an |
Beta Was this translation helpful? Give feedback.
Answered by
FabianLars
Oct 1, 2022
Replies: 1 comment 1 reply
-
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 let appdir = app_handle.path_resolver().app_dir().unwrap(); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
FabianLars
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: