Commits
2026-10-18
niri-session: import login environment without the deprecated systemd callRuben Hutter · 4adbf00
niri-session: import login environment without the deprecated systemd call Replace the bare `systemctl --user import-environment` with `dbus-update-activation-environment --systemd --all`, which imports the same login environment into the systemd user manager and D-Bus without triggering the deprecation warning. The old call remains as a fallback for systems without dbus tools.
2026-09-14
niri-session: Pass -l to the $SHELLIvan Molodetskikh · 2f87f38
niri-session: Pass -l to the $SHELL Apparently, despite being documented in the bash reference manual and the bash manpage, the `-` prepended to `$0` does *not* make bash exec profile files in its default build configuration. It happened to work so far because distros tend to build bash with a define that makes it work as documented. I've no idea if all reasonable login $SHELLs accept -l as an argument, let's hope they do. This lets us drop dependency on bash.
2026-08-14
niri-session: fix shellcheck warningsLennard Hofmann · 6062844
niri-session: fix shellcheck warnings ANSI-C strings like $'' are Bash-only.
2026-05-05
2026-01-04
Improve dinit service files (#3193)Mark Karlinsky · Unverified3bfa4a7
Improve dinit service files (#3193) * Improve dinit service files and niri-session Two main changes were made: - After a discussion in davmac314/dinit#496, 2 dinit services are now provided. The first one is 'niri', which runs niri itself, and the second one is 'niri.target' which brings up all the dependences from user configuration. - Made the behaviour of 'niri-session' when running under dinit closer to the behaviour when running under systemd. In particular, now the script wait for service completion, because some login managers shut the session down the moment the startup script completes. * Update paths in docs
2025-07-15
niri-session: Also unset DISPLAYIvan Molodetskikh · bc0a062
niri-session: Also unset DISPLAY We set it now for xwayland-satellite integration.
2025-07-12
Detect external session managementVladimir-csp · 8833963
Detect external session management This should make `uwsm start niri.desktop` possible like with other compositors.
2025-01-14
make niri-session POSIX compatible (#970)Erica Z · Unverified36076d5
make niri-session POSIX compatible (#970) * make niri-session POSIX compatible * Update resources/niri-session --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2024-10-13
Add support for running as a dinit service (#728)Mark Karlinsky · Unverifiedd7156df
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 <yalterz@gmail.com> * Fixed mistakes in wiki/Getting-Started.md Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com> * niri-session does not start dinit anymore --------- Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2024-06-09
Fix typos (#429)Ujp8LfXBJ6wCPR · Unverifiedaf6d84a
Fix typos (#429) * Fix typos reported by "typos" crate https://github.com/crate-ci/typos * Ignore typo datas -> data See https://github.com/crate-ci/typos?tab=readme-ov-file#false-positives for more configureability. --------- Co-authored-by: Carl Hjerpe <git@hjerpe.xyz> Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>
2024-02-20
Set XDG_CURRENT_DESKTOP and XDG_SESSION_TYPE from niri itselfIvan Molodetskikh · 9f1b4eeBrowse files
2024-02-12
2023-11-25
Add and call niri-shutdown.targetIvan Molodetskikh · f085384
Add and call niri-shutdown.target Sometimes graphical-session.target lingers on after niri quits, leading to services not being started on a quick relogin. To work around this, add and run a systemd target that conflicts with graphical-session.target and forces its shutdown.
2023-10-17
Try to pick user login shell instead of assuming bashKirill Chibisov · f3e0498
Try to pick user login shell instead of assuming bash The trick is inspired by `gnome-session`.
2023-08-27
niri-session: Unset environment variablesIvan Molodetskikh · a54e048
niri-session: Unset environment variables Without this, logging out and then back in doesn't work because WAYLAND_DISPLAY is left for some reason.