mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-11-28 11:22:47 +01:00
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:
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"
|
||||
|
||||
Reference in new issue
Block a user