Do not use dbus-run-session, fixes #22 and #23

This commit is contained in:
Jeremy Soller 2024-03-22 08:13:14 -06:00
parent 1b13865ea0
commit b8530a9001
No known key found for this signature in database
GPG key ID: D02FD439211AF56F

View file

@ -206,8 +206,6 @@ pub fn main() -> Result<(), Box<dyn Error>> {
SessionType::X11 => {
//TODO: xinit may be better, but more complicated to set up
vec![
"dbus-run-session".to_string(),
"--".to_string(),
"startx".to_string(),
"/usr/bin/env".to_string(),
"XDG_SESSION_TYPE=x11".to_string(),
@ -215,8 +213,6 @@ pub fn main() -> Result<(), Box<dyn Error>> {
}
SessionType::Wayland => {
vec![
"dbus-run-session".to_string(),
"--".to_string(),
"/usr/bin/env".to_string(),
"XDG_SESSION_TYPE=wayland".to_string(),
]