Systemd-start: clarify exit command variants (#868)

Resort to `terminate-users` only in case of problems.
This commit is contained in:
Vladimir-csp 2024-11-14 23:58:58 +03:00 committed by GitHub
parent fa8dd7dc26
commit 052b616ffe
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -85,9 +85,9 @@ layout pages (See the sidebar).
{{< callout type=warning >}}
[uwsm](../../Useful-Utilities/Systemd-start) users should avoid using `exit` dispatcher, or terminating Hyprland process directly, as exiting Hyprland this way removes it from under its clients and may cause some systemd services to enter inconsistent states causing problems in the next session. Use `exec, loginctl terminate-user ""` instead.
[uwsm](../../Useful-Utilities/Systemd-start) users should avoid using `exit` dispatcher, or terminating Hyprland process directly, as exiting Hyprland this way removes it from under its clients and interferes with ordered shutdown sequence. Use `exec, uwsm stop` (or [other variants](https://github.com/Vladimir-csp/uwsm#how-to-stop)) which will gracefully bring down graphical session (and login session bound to it, if any). If you experience problems with units entering inconsistent states, affecting subsequent sessions, use `exec, loginctl terminate-user ""` instead (terminates all units of the user).
It's also strongly advised to replace the `exit` dispatcher with `exec, loginctl terminate-user ""` inside `hyprland.conf` keybinds section.
It's also strongly advised to replace the `exit` dispatcher inside `hyprland.conf` keybinds section accordingly.
{{< /callout >}}