forge
Explore
Log in

Don't you dare go Hollow

Commits

Commits on 055a94de3d3b792adfb6842bdddd8eab6384164fFiltered to src/utils/watcher.rsClear filter

2025-08-05

fix hot reloading `/etc/niri/config.kdl` (#1907)sodiboo · Unverified52c579d
fix hot reloading `/etc/niri/config.kdl` (#1907)

* refactor config load logic, and properly watch the system config path

* move config creation to niri-config, and make the errors a bit nicer

notably, "error creating config" is now a cause for "error loading
config", instead of it being one error and then "error loading config:
no such file or directory". also, failure to load a config is now
printed as an error level diagnostic (because it is indeed an error, not
just a warning you can shrug off)

* refactor watcher tests; add some new ones

now they check for the file contents too! and i added some tests for
ConfigPath::Regular, including a messy one with many symlink swaps

* fixes

---------

Co-authored-by: Ivan Molodetskikh <yalterz@gmail.com>

2025-02-12

2024-02-21

Move watcher to utilsIvan Molodetskikh · 9e60b34Browse files