#How to get "config_dir" before tauri::Builder code?

3 messages · Page 1 of 1 (latest)

plucky zinc
#

I was using this code in Tauri 1.0: tauri::api::path::config_dir().expect("bad conf dir");

The migration docs say the module functions were moved to "tauri::Manager::path". However, the best result I got was it telling me that an app handle is required to be provided.
Is there any way to get the directory before the tauri::Builder setup function?

rose void
#

currently you'll have to use the dirs crate

#

most of the methods in tauri's api that do not start with app_ are a re-export of that.