Avoid various systemd dependencies --- resources/niri.desktop.orig 2023-11-26 12:51:13 UTC +++ resources/niri.desktop @@ -1,6 +1,6 @@ Comment=A scrollable-tiling Wayland compositor [Desktop Entry] Name=Niri Comment=A scrollable-tiling Wayland compositor -Exec=niri-session +Exec=niri --session Type=Application DesktopNames=niri --- src/niri.rs.orig 2023-11-26 12:51:13 UTC +++ src/niri.rs @@ -743,9 +743,9 @@ impl Niri { // logind-zbus has a wrong signature for this method, so do it manually. // https://gitlab.com/flukejones/logind-zbus/-/merge_requests/5 let message = conn.call_method( - Some("org.freedesktop.login1"), - "/org/freedesktop/login1", - Some("org.freedesktop.login1.Manager"), + Some("org.freedesktop.ConsoleKit"), + "/org/freedesktop/ConsoleKit/Manager", + Some("org.freedesktop.ConsoleKit.Manager"), "Inhibit", &("handle-power-key", "niri", "Power key handling", "block"), )?;