From d7156df8428cb9e6665a212e66c74bdb25842be8 Mon Sep 17 00:00:00 2001 From: Mark Karlinsky <34838287+markK24@users.noreply.github.com> Date: Sun, 13 Oct 2024 15:26:16 +0300 Subject: Add support for running as a dinit service (#728) * Added dinit services * Added dinit support to niri-session * Replaced shutdown script for dinit with a single command execution * Added dinit service files to Getting Started install tables * Fix typo in resources/dinit/niri Co-authored-by: Ivan Molodetskikh * Fixed mistakes in wiki/Getting-Started.md Co-authored-by: Ivan Molodetskikh * niri-session does not start dinit anymore --------- Co-authored-by: Ivan Molodetskikh --- resources/dinit/niri | 8 ++++++++ resources/dinit/niri-shutdown | 3 +++ 2 files changed, 11 insertions(+) create mode 100644 resources/dinit/niri create mode 100644 resources/dinit/niri-shutdown (limited to 'resources/dinit') diff --git a/resources/dinit/niri b/resources/dinit/niri new file mode 100644 index 00000000..b3807b90 --- /dev/null +++ b/resources/dinit/niri @@ -0,0 +1,8 @@ +type = process +command = niri --session +restart = false +working-dir = $HOME +depends-on = dbus +after = niri-shutdown +chain-to = niri-shutdown +options: always-chain \ No newline at end of file diff --git a/resources/dinit/niri-shutdown b/resources/dinit/niri-shutdown new file mode 100644 index 00000000..d609a933 --- /dev/null +++ b/resources/dinit/niri-shutdown @@ -0,0 +1,3 @@ +type = scripted +command = dinitctl -u setenv WAYLAND_DISPLAY= XDG_SESSION_TYPE= XDG_CURRENT_DESKTOP= NIRI_SOCKET= +restart = false \ No newline at end of file -- cgit