From fe4cfdc545fb83b5c5e880cc24c65f4c773be8a0 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Sun, 16 Jun 2019 16:03:52 +0000 Subject: Unset DESKTOP_STARTUP_ID environment variable This unsets the DESKTOP_STARTUP_ID environment variable at startup, to prevent child processes from inheriting it. This solves problems with child windows not properly spawning in the foreground with KDE. More information can be found here: https://specifications.freedesktop.org/startup-notification-spec/startup-notification-latest.txt --- alacritty_terminal/src/tty/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'alacritty_terminal/src/tty/mod.rs') diff --git a/alacritty_terminal/src/tty/mod.rs b/alacritty_terminal/src/tty/mod.rs index c0ac7a31..16ae96ce 100644 --- a/alacritty_terminal/src/tty/mod.rs +++ b/alacritty_terminal/src/tty/mod.rs @@ -89,6 +89,9 @@ pub fn setup_env(config: &Config) { // Advertise 24-bit color support env::set_var("COLORTERM", "truecolor"); + // Prevent child processes from inheriting startup notification env + env::remove_var("DESKTOP_STARTUP_ID"); + // Set env vars from config for (key, value) in config.env.iter() { env::set_var(key, value); -- cgit v1.2.3-54-g00ecf