Fix log_dir (#2756)

This commit is contained in:
Jonas Kruckenberg 2021-10-17 13:12:52 +02:00 committed by GitHub
parent acbb3ae7bb
commit 39e0da1652
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 2 deletions

View File

@ -236,7 +236,7 @@ pub fn app_dir(config: &Config) -> Option<PathBuf> {
dirs_next::config_dir().map(|dir| dir.join(&config.tauri.bundle.identifier))
}
/// Returns the path to the log directory.
/// Returns the path to the suggested log directory.
pub fn log_dir(config: &Config) -> Option<PathBuf> {
#[cfg(target_os = "macos")]
let path = dirs_next::home_dir().map(|dir| {

View File

@ -162,6 +162,11 @@ impl PathResolver {
pub fn app_dir(&self) -> Option<PathBuf> {
crate::api::path::app_dir(&self.config)
}
/// Returns the path to the suggested log directory.
pub fn log_dir(&self) -> Option<PathBuf> {
crate::api::path::log_dir(&self.config)
}
}
/// A handle to the currently running application.

View File

@ -429,7 +429,7 @@ async function currentDir(): Promise<string> {
}
/**
* Returns the path to the log directory.
* Returns the path to the suggested log directory.
*
* ### Platform-specific
*