1
0
Fork 0
mirror of https://github.com/alacritty/alacritty.git synced 2024-11-25 14:05:41 -05:00

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
This commit is contained in:
Christian Duerr 2019-06-16 16:03:52 +00:00 committed by GitHub
parent cc3e4d3d5c
commit fe4cfdc545
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [Unreleased]
### Fixed
- GUI programs launched by Alacritty starting in the background on X11
## 0.3.3 ## 0.3.3
### Packaging ### Packaging

View file

@ -89,6 +89,9 @@ pub fn setup_env(config: &Config) {
// Advertise 24-bit color support // Advertise 24-bit color support
env::set_var("COLORTERM", "truecolor"); env::set_var("COLORTERM", "truecolor");
// Prevent child processes from inheriting startup notification env
env::remove_var("DESKTOP_STARTUP_ID");
// Set env vars from config // Set env vars from config
for (key, value) in config.env.iter() { for (key, value) in config.env.iter() {
env::set_var(key, value); env::set_var(key, value);