summaryrefslogtreecommitdiff
path: root/x11-wm/niri/files/patch-no-systemd
blob: 204a547194aa865557b752e7570e650322a4038d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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"),
         )?;