Function eframe::storage_dir

source ·
pub fn storage_dir(app_id: &str) -> Option<PathBuf>
Expand description

The folder where eframe will store its state.

The given app_id is either the egui::ViewportBuilder::app_id of crate::NativeOptions::viewport or the title argument to crate::run_native.

On native the path is picked using directories_next::ProjectDirs::data_dir which is:

  • Linux: /home/UserName/.local/share/APP_ID
  • macOS: /Users/UserName/Library/Application Support/APP_ID
  • Windows: C:\Users\UserName\AppData\Roaming\APP_ID