autocommit 2022-04-14 19:52:11 CEST
This commit is contained in:
parent
35ddfbcbe3
commit
5f13954dbc
27 changed files with 556 additions and 312 deletions
|
|
@ -35,6 +35,7 @@ use {
|
|||
thiserror::Error,
|
||||
uapi::{c, pipe2, Errno, Fd, IntoUstr, OwnedFd, UstrPtr},
|
||||
};
|
||||
use crate::compositor::{DISPLAY, WAYLAND_DISPLAY};
|
||||
|
||||
pub struct ForkerProxy {
|
||||
pidfd: Rc<OwnedFd>,
|
||||
|
|
@ -297,8 +298,8 @@ struct Forker {
|
|||
impl Forker {
|
||||
fn handle(ppid: c::pid_t, socket: OwnedFd) -> ! {
|
||||
env::set_var("XDG_SESSION_TYPE", "wayland");
|
||||
env::remove_var("DISPLAY");
|
||||
env::remove_var("WAYLAND_DISPLAY");
|
||||
env::remove_var(DISPLAY);
|
||||
env::remove_var(WAYLAND_DISPLAY);
|
||||
setup_name("the ol' forker");
|
||||
setup_deathsig(ppid);
|
||||
reset_signals();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue