File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
database_upgrader/src/upgrader Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -330,7 +330,7 @@ impl Paths {
330
330
/// account-level preferences.
331
331
pub fn preferences_file ( & self ) -> PathBuf {
332
332
let mut path = if self . is_global ( ) {
333
- self . global_preferences_file ( )
333
+ self . documents_dir ( ) . join ( PREFERENCES_FILE )
334
334
} else {
335
335
self . user_dir ( ) . join ( PREFERENCES_FILE )
336
336
} ;
@@ -340,7 +340,9 @@ impl Paths {
340
340
341
341
/// Path to the global preferences file.
342
342
pub fn global_preferences_file ( & self ) -> PathBuf {
343
- self . documents_dir ( ) . join ( PREFERENCES_FILE )
343
+ let mut path = self . documents_dir ( ) . join ( PREFERENCES_FILE ) ;
344
+ path. set_extension ( JSON_EXT ) ;
345
+ path
344
346
}
345
347
346
348
/// Path to the file used to store account-level system messages.
Original file line number Diff line number Diff line change @@ -436,6 +436,7 @@ async fn delete_stale_files(
436
436
options. paths. identity_dir( ) . to_owned( ) ,
437
437
options. paths. audit_file( ) . to_owned( ) ,
438
438
options. paths. global_preferences_file( ) ,
439
+ options. paths. local_dir( ) . join( ".DS_Store" ) ,
439
440
] ;
440
441
441
442
for account in accounts {
You can’t perform that action at this time.
0 commit comments