feat: set XDG_SESSION_TYPE=wayland just before graphical-session.target

This commit is contained in:
Ron Waldon-Howe 2024-01-10 11:36:44 +11:00 committed by Victoria Brekenfeld
parent be418fde28
commit b724bddf49
2 changed files with 27 additions and 10 deletions

View file

@ -2,6 +2,13 @@
use std::process::{Command, Stdio};
pub async fn set_systemd_environment(key: &str, value: &str) {
run_optional_command(
"systemctl",
&["--user", "set-environment", &format!("{key}={value}")],
)
}
pub async fn start_systemd_target() {
run_optional_command(
"systemctl",