File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 146
146
//! the operating system.
147
147
//!
148
148
//! * Mac OS X: `~/Library/Application Support`
149
- //! * Other Unix/Linux: `$XDG_DATA_HOME `, defaulting to `~/.local/share ` if not set
149
+ //! * Other Unix/Linux: `$XDG_CONFIG_HOME `, defaulting to `~/.config ` if not set
150
150
//! * Windows: `%APPDATA%`, defaulting to `<std::env::home_dir()>\AppData\Roaming` if not set
151
151
//!
152
152
//! The data is stored in JSON format. This has several advantages:
@@ -196,11 +196,11 @@ fn get_prefs_base_path() -> Option<PathBuf> {
196
196
197
197
#[ cfg( all( unix, not( target_os="macos" ) ) ) ]
198
198
fn get_prefs_base_path ( ) -> Option < PathBuf > {
199
- match env:: var ( "XDG_DATA_HOME " ) {
199
+ match env:: var ( "XDG_CONFIG_HOME " ) {
200
200
Ok ( path_str) => Some ( path_str. into ( ) ) ,
201
201
Err ( ..) => {
202
202
env:: home_dir ( ) . map ( |mut dir| {
203
- dir. push ( ".local/share " ) ;
203
+ dir. push ( ".config " ) ;
204
204
dir
205
205
} )
206
206
}
You can’t perform that action at this time.
0 commit comments