aboutsummaryrefslogtreecommitdiff
path: root/alacritty/src
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2023-05-16 07:41:20 +0300
committerKirill Chibisov <contact@kchibisov.com>2023-05-17 08:36:41 +0300
commit04811c674ba01a0f68d9842c33816b78fe3253ab (patch)
tree306c312974d14b2d62873bf9809f234fb4129af1 /alacritty/src
parentb1feba6916f1ccf57b0a76914946c112ec2195a2 (diff)
downloadr-alacritty-04811c674ba01a0f68d9842c33816b78fe3253ab.tar.gz
r-alacritty-04811c674ba01a0f68d9842c33816b78fe3253ab.tar.bz2
r-alacritty-04811c674ba01a0f68d9842c33816b78fe3253ab.zip
Update xdg and dirs crate
The recent version on xdg crate moved to home crate which is used by cargo. Thus to query for home directory we can use the home dependency instead which is smaller.
Diffstat (limited to 'alacritty/src')
-rw-r--r--alacritty/src/config/mod.rs2
-rw-r--r--alacritty/src/main.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/alacritty/src/config/mod.rs b/alacritty/src/config/mod.rs
index df49db31..2f230b06 100644
--- a/alacritty/src/config/mod.rs
+++ b/alacritty/src/config/mod.rs
@@ -236,7 +236,7 @@ fn load_imports(config: &Value, config_paths: &mut Vec<PathBuf>, recursion_limit
};
// Resolve paths relative to user's home directory.
- if let (Ok(stripped), Some(home_dir)) = (path.strip_prefix("~/"), dirs::home_dir()) {
+ if let (Ok(stripped), Some(home_dir)) = (path.strip_prefix("~/"), home::home_dir()) {
path = home_dir.join(stripped);
}
diff --git a/alacritty/src/main.rs b/alacritty/src/main.rs
index d9d26022..29120b35 100644
--- a/alacritty/src/main.rs
+++ b/alacritty/src/main.rs
@@ -151,7 +151,7 @@ fn alacritty(options: Options) -> Result<(), Box<dyn Error>> {
// Switch to home directory.
#[cfg(target_os = "macos")]
- env::set_current_dir(dirs::home_dir().unwrap()).unwrap();
+ env::set_current_dir(home::home_dir().unwrap()).unwrap();
// Set macOS locale.
#[cfg(target_os = "macos")]