Skip to content

Commit 8e85576

Browse files
authored
fix: default log path for linux and windows updated (fix: #6809) (#6827)
* fix: default log path for linux and windows updated (fix: #6809) * fix impl after reset
1 parent 3256a37 commit 8e85576

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'tauri': minor:bug
3+
---
4+
5+
Fix default log path for linux and windows

core/tauri/src/path/desktop.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -232,9 +232,9 @@ impl<R: Runtime> PathResolver<R> {
232232
///
233233
/// ## Platform-specific
234234
///
235-
/// - **Linux:** Resolves to [`config_dir`]`/${bundle_identifier}/logs`.
235+
/// - **Linux:** Resolves to [`data_local_dir`]`/${bundle_identifier}/logs`.
236236
/// - **macOS:** Resolves to [`home_dir`]`/Library/Logs/${bundle_identifier}`
237-
/// - **Windows:** Resolves to [`config_dir`]`/${bundle_identifier}/logs`.
237+
/// - **Windows:** Resolves to [`data_local_dir`]`/${bundle_identifier}/logs`.
238238
pub fn app_log_dir(&self) -> Result<PathBuf> {
239239
#[cfg(target_os = "macos")]
240240
let path = dirs_next::home_dir().ok_or(Error::UnknownPath).map(|dir| {
@@ -244,7 +244,7 @@ impl<R: Runtime> PathResolver<R> {
244244
});
245245

246246
#[cfg(not(target_os = "macos"))]
247-
let path = dirs_next::config_dir()
247+
let path = dirs_next::data_local_dir()
248248
.ok_or(Error::UnknownPath)
249249
.map(|dir| {
250250
dir

0 commit comments

Comments
 (0)