mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-03 10:11:15 +02:00
Fix log_dir (#2756)
This commit is contained in:
committed by
GitHub
parent
acbb3ae7bb
commit
39e0da1652
@@ -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| {
|
||||
|
||||
@@ -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.
|
||||
|
||||
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user