fix(e2e): rewrite_config only writes the file

The daemon watches the configuration file it was started with, so the
extra replace-configuration after each write hid the reload that the
scenario is meant to check.
This commit is contained in:
LGUG2Z committed 2026-10-30 18:22:44 -07:00
1 parent 30b73be36e
commit 2f1df7decd
1 file changed
+1 -2
@@ -217,9 +217,8 @@ class WindowsPlatform:
def rewrite_config(self, config: dict) -> None:
local = self._out / "komorebi.json"
local.write_text(json.dumps(config, indent=2))
# the daemon watches the file it was started with and reads it again
self._agent.put_file(local, CONFIG_PATH)
# the daemon reads the file again when told to: it does not watch it
self.komorebic("replace-configuration", CONFIG_PATH)
def exe_id(self, program: str) -> str:
# kfw names the exe of a window with its extension