File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' tauri ' : minor:bug
3
+ ---
4
+
5
+ Fix default log path for linux and windows
Original file line number Diff line number Diff line change @@ -232,9 +232,9 @@ impl<R: Runtime> PathResolver<R> {
232
232
///
233
233
/// ## Platform-specific
234
234
///
235
- /// - **Linux:** Resolves to [`config_dir `]`/${bundle_identifier}/logs`.
235
+ /// - **Linux:** Resolves to [`data_local_dir `]`/${bundle_identifier}/logs`.
236
236
/// - **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`.
238
238
pub fn app_log_dir ( & self ) -> Result < PathBuf > {
239
239
#[ cfg( target_os = "macos" ) ]
240
240
let path = dirs_next:: home_dir ( ) . ok_or ( Error :: UnknownPath ) . map ( |dir| {
@@ -244,7 +244,7 @@ impl<R: Runtime> PathResolver<R> {
244
244
} ) ;
245
245
246
246
#[ cfg( not( target_os = "macos" ) ) ]
247
- let path = dirs_next:: config_dir ( )
247
+ let path = dirs_next:: data_local_dir ( )
248
248
. ok_or ( Error :: UnknownPath )
249
249
. map ( |dir| {
250
250
dir
You can’t perform that action at this time.
0 commit comments