From 19d873f8a0b933d6d92d1be65a53668c190387ae Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Tue, 15 Sep 2026 09:20:05 +0300 Subject: [PATCH] wiki: Add warning about running niri from TTY --- docs/wiki/Getting-Started.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/wiki/Getting-Started.md b/docs/wiki/Getting-Started.md index 411c46d2..4faa3181 100644 --- a/docs/wiki/Getting-Started.md +++ b/docs/wiki/Getting-Started.md @@ -46,6 +46,10 @@ If you're not using a display manager, you should run `niri-session` (systemd/di The `--session` flag will make niri import its environment variables globally into the system manager and D-Bus, and start its D-Bus services. The `niri-session` script will additionally start niri as a systemd/dinit service, which starts up a graphical session target required by some services like portals. +> [!WARNING] +> Running niri directly from a TTY means that exiting or crashing niri will put the user straight into an unlocked shell prompt. +> Set up a display manager to avoid this. + You can also run `niri` inside an existing desktop session. Then it will open as a window, where you can give it a try. Note that this windowed mode is mainly meant for development, so it is a bit buggy (in particular, there are issues with hotkeys).