File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 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> {
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
You can’t perform that action at this time.
0 commit comments