mirror of
https://github.com/pinnacle-comp/pinnacle.git
synced 2024-12-27 21:58:18 +01:00
Start config after xwayland starts
This commit is contained in:
parent
145ab55dc9
commit
7e1189017b
2 changed files with 4 additions and 7 deletions
|
@ -555,7 +555,6 @@ impl process_service_server::ProcessService for ProcessService {
|
||||||
}
|
}
|
||||||
|
|
||||||
let Ok(mut child) = tokio::process::Command::new(OsString::from(arg0.clone()))
|
let Ok(mut child) = tokio::process::Command::new(OsString::from(arg0.clone()))
|
||||||
.envs(state.xdisplay.map(|xdisp| ("DISPLAY", format!(":{xdisp}"))))
|
|
||||||
.stdin(match has_callback {
|
.stdin(match has_callback {
|
||||||
true => Stdio::piped(),
|
true => Stdio::piped(),
|
||||||
false => Stdio::null(),
|
false => Stdio::null(),
|
||||||
|
|
10
src/state.rs
10
src/state.rs
|
@ -161,12 +161,6 @@ impl State {
|
||||||
},
|
},
|
||||||
)?;
|
)?;
|
||||||
|
|
||||||
loop_handle.insert_idle(|state| {
|
|
||||||
if let Err(err) = state.start_config(state.config.dir(&state.xdg_base_dirs)) {
|
|
||||||
panic!("failed to start config: {err}");
|
|
||||||
}
|
|
||||||
});
|
|
||||||
|
|
||||||
let mut seat_state = SeatState::new();
|
let mut seat_state = SeatState::new();
|
||||||
|
|
||||||
let mut seat = seat_state.new_wl_seat(&display_handle, backend.seat_name());
|
let mut seat = seat_state.new_wl_seat(&display_handle, backend.seat_name());
|
||||||
|
@ -208,6 +202,10 @@ impl State {
|
||||||
state.xdisplay = Some(display);
|
state.xdisplay = Some(display);
|
||||||
|
|
||||||
std::env::set_var("DISPLAY", format!(":{display}"));
|
std::env::set_var("DISPLAY", format!(":{display}"));
|
||||||
|
|
||||||
|
if let Err(err) = state.start_config(state.config.dir(&state.xdg_base_dirs)) {
|
||||||
|
panic!("failed to start config: {err}");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
XWaylandEvent::Exited => {
|
XWaylandEvent::Exited => {
|
||||||
state.xwm.take();
|
state.xwm.take();
|
||||||
|
|
Loading…
Reference in a new issue