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.
This commit is contained in:
LGUG2Z committed 2026-10-30 18:22:44 -07:00
1 parent 27ce93fe17
commit 97712f7510
1 file changed
+4
@@ -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"