Update smithay

This commit is contained in:
Ian Douglas Scott 2024-04-24 09:34:46 -07:00 committed by Victoria Brekenfeld
parent a9740e5040
commit 73b12194c0
19 changed files with 202 additions and 137 deletions

View file

@ -1,19 +1,18 @@
// SPDX-License-Identifier: GPL-3.0-only
use crate::state::State;
use crate::state::Common;
use libsystemd::daemon::{booted, notify, NotifyState};
use std::process::Command;
use tracing::{error, warn};
pub fn ready(state: &State) {
pub fn ready(common: &Common) {
if booted() {
match Command::new("systemctl")
.args(["--user", "import-environment", "WAYLAND_DISPLAY", "DISPLAY"])
.env("WAYLAND_DISPLAY", &state.common.socket)
.env("WAYLAND_DISPLAY", &common.socket)
.env(
"DISPLAY",
&state
.common
&common
.xwayland_state
.as_ref()
.map(|s| format!(":{}", s.display))