29 lines
868 B
Rust
29 lines
868 B
Rust
use std::path::PathBuf;
|
|
|
|
pub fn app_data_dir() -> PathBuf {
|
|
kon_core::paths::app_paths().app_data_dir()
|
|
}
|
|
|
|
/// Path to the SQLite database file.
|
|
pub fn database_path() -> PathBuf {
|
|
kon_core::paths::app_paths().database_path()
|
|
}
|
|
|
|
/// Directory for saved audio recordings.
|
|
pub fn recordings_dir() -> PathBuf {
|
|
kon_core::paths::app_paths().recordings_dir()
|
|
}
|
|
|
|
/// Directory for crash dumps written by the Rust panic hook.
|
|
/// Each crash is a single text file: `<unix-ts>-<short-id>.crash`.
|
|
/// Used by the diagnostic-report bundler in Settings → About.
|
|
pub fn crashes_dir() -> PathBuf {
|
|
kon_core::paths::app_paths().crashes_dir()
|
|
}
|
|
|
|
/// Directory for the rolling Rust log file (kon.log + rotated kon.log.1, etc).
|
|
/// Subscribers configured in src-tauri/src/lib.rs at startup.
|
|
pub fn logs_dir() -> PathBuf {
|
|
kon_core::paths::app_paths().logs_dir()
|
|
}
|