Skip to content

Where to get/how to generate config instance (to use with tauri::api::path::app_data_dir)? #6583

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

You must be logged in to vote

The idea is to get it from an instance of App or AppHandle which you can get in the setup hook and commands for example.
And if you have an app instance there's a helper function to make it a bit more streamlined (without the config stuff): app.path_resolver().app_data_dir()

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by StelFoog
Comment options

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

@dukejones
Comment options

@aleksey-hoffman
Comment options

@jamesfebin
Comment options

@karimelhajoui63
Comment options

Comment options

You must be logged in to vote
1 reply
@FabianLars
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
8 participants