xwayland: Fix display env variable race
This commit is contained in:
parent
7704f65d02
commit
4940d0823d
6 changed files with 16 additions and 10 deletions
|
|
@ -914,7 +914,8 @@ impl State {
|
|||
.common
|
||||
.xwayland_state
|
||||
.values()
|
||||
.find_map(|s| s.display.map(|v| format!(":{}", v)))
|
||||
.next()
|
||||
.map(|s| format!(":{}", s.display))
|
||||
.unwrap_or(String::new()),
|
||||
)
|
||||
.env_remove("COSMIC_SESSION_SOCK")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue