aboutsummaryrefslogtreecommitdiff
path: root/alacritty_terminal/src/tty/mod.rs
diff options
context:
space:
mode:
authorKirill Chibisov <contact@kchibisov.com>2024-10-03 01:10:42 +0300
committerGitHub <noreply@github.com>2024-10-03 01:10:42 +0300
commit6067787763e663bd308e5b724a5efafc2c54a3d1 (patch)
treecf8ef3ad2a1b0a7244a08da61c2c3cfe32ee0768 /alacritty_terminal/src/tty/mod.rs
parent58383f4e46e22c90e7ed85db535d9640b464176b (diff)
downloadalacritty-6067787763e663bd308e5b724a5efafc2c54a3d1.tar.gz
alacritty-6067787763e663bd308e5b724a5efafc2c54a3d1.zip
Remove startup notify variables only for shell
This will prevent issues when `setup_env` from `alacritty_terminal` will remove potentially useful variables for users of the library. Fixes #8202.
Diffstat (limited to 'alacritty_terminal/src/tty/mod.rs')
-rw-r--r--alacritty_terminal/src/tty/mod.rs4
1 files changed, 0 insertions, 4 deletions
diff --git a/alacritty_terminal/src/tty/mod.rs b/alacritty_terminal/src/tty/mod.rs
index 2bcc5da9..eed2a76d 100644
--- a/alacritty_terminal/src/tty/mod.rs
+++ b/alacritty_terminal/src/tty/mod.rs
@@ -98,10 +98,6 @@ pub fn setup_env() {
// Advertise 24-bit color support.
env::set_var("COLORTERM", "truecolor");
-
- // Prevent child processes from inheriting startup notification env.
- env::remove_var("DESKTOP_STARTUP_ID");
- env::remove_var("XDG_ACTIVATION_TOKEN");
}
/// Check if a terminfo entry exists on the system.