diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-01-08 04:46:11 +0000 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2018-01-07 20:46:11 -0800 |
commit | cc07624e99dfa9ba7d1c70bfc7018e63808b4ae1 (patch) | |
tree | 44c98268d8db41974eb0f400de4ddc0ceae7697d | |
parent | c93d2b1a2d9332bd0c477997d108ba8e9e84ca9c (diff) | |
download | alacritty-cc07624e99dfa9ba7d1c70bfc7018e63808b4ae1.tar.gz alacritty-cc07624e99dfa9ba7d1c70bfc7018e63808b4ae1.zip |
Revert #987 behavior on macos (#1007)
-rw-r--r-- | src/main.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index 6c1ea056..4b24b1a5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -30,6 +30,8 @@ extern crate log; use std::error::Error; use std::sync::Arc; +#[cfg(target_os = "macos")] +use std::env; use alacritty::cli; use alacritty::config::{self, Config}; @@ -49,6 +51,10 @@ fn main() { let options = cli::Options::load(); let config = load_config(&options); + // Switch to home directory + #[cfg(target_os = "macos")] + env::set_current_dir(env::home_dir().unwrap()).unwrap(); + // Set locale #[cfg(target_os = "macos")] locale::set_locale_environment(); |