From 97712f7510cbed268f4b8fadf13b2a226805f303 Mon Sep 17 00:00:00 2001 From: LGUG2Z Date: Wed, 28 Oct 2026 19:33:26 -0700 Subject: [PATCH] feat(e2e): name the exe of a rule with its extension on Windows kfw matches a rule's id against the exe name of the window, which has the extension, so exe_id returns program.exe. --- e2e/platforms/qemu_windows/windows_platform.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/e2e/platforms/qemu_windows/windows_platform.py b/e2e/platforms/qemu_windows/windows_platform.py index c15b5a53..6bb55889 100644 --- a/e2e/platforms/qemu_windows/windows_platform.py +++ b/e2e/platforms/qemu_windows/windows_platform.py @@ -221,6 +221,10 @@ class WindowsPlatform: # 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 + return f"{program}.exe" + def _locked(self) -> bool: listing = self._agent.exec( "tasklist", "/fi", "imagename eq LogonUI.exe"