feat: set XDG_SESSION_TYPE=wayland just before graphical-session.target
This commit is contained in:
parent
be418fde28
commit
b724bddf49
2 changed files with 27 additions and 10 deletions
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue