aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md1
-rw-r--r--alacritty_terminal/src/tty/mod.rs4
-rw-r--r--alacritty_terminal/src/tty/unix.rs4
3 files changed, 5 insertions, 4 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index dc858911..659a098e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -44,6 +44,7 @@ Notable changes to the `alacritty_terminal` crate are documented in its
- Cursor color requests with default cursor colors
- Fullwidth semantic escape characters
- Windows app icon now displays properly in old alt+tab on Windows
+- Alacritty not being properly activated with startup notify
## 0.13.2
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.
diff --git a/alacritty_terminal/src/tty/unix.rs b/alacritty_terminal/src/tty/unix.rs
index 8084a753..6565f20b 100644
--- a/alacritty_terminal/src/tty/unix.rs
+++ b/alacritty_terminal/src/tty/unix.rs
@@ -227,6 +227,10 @@ pub fn from_fd(config: &Options, window_id: u64, master: OwnedFd, slave: OwnedFd
builder.env(key, value);
}
+ // Prevent child processes from inheriting linux-specific startup notification env.
+ builder.env_remove("XDG_ACTIVATION_TOKEN");
+ builder.env_remove("DESKTOP_STARTUP_ID");
+
unsafe {
builder.pre_exec(move || {
// Create a new process group.