summaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2018-11-11 12:55:28 +0000
committerGitHub <noreply@github.com>2018-11-11 12:55:28 +0000
commitdba3cccf6948fb993e02d03ca8891fbc7f6cd3e6 (patch)
treef329f86bed6a185a8d7dc4b38bc13155071e6b9f /src/main.rs
parent021b424858d0b2fcf50c4199e152e93596cc8d5d (diff)
downloadalacritty-dba3cccf6948fb993e02d03ca8891fbc7f6cd3e6.tar.gz
alacritty-dba3cccf6948fb993e02d03ca8891fbc7f6cd3e6.zip
Set env variables before window start
The environment variables specified in the configuration file are now all set before the window is created. As a result, this makes it possible to add the `WINIT_HIDPI_FACTOR` env variable directly to the Alacritty configuration. This fixes https://github.com/jwilm/alacritty/issues/1768.
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index e72df15d..11adb396 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -116,6 +116,9 @@ fn run(mut config: Config, options: &cli::Options) -> Result<(), Box<Error>> {
info!("Configuration loaded from {}", config_path.display());
};
+ // Set environment variables
+ tty::setup_env(&config);
+
// Create a display.
//
// The display manages a window and can draw the terminal