Running apps take each release's hook: the injector loads it by version folder (FP-6) #13
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/fzt-picker!13
Loading…
Reference in a new issue
No description provided.
Delete branch "fp-6-hook-by-version-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PR 1 of 1: running apps take each new release's hook without restarting (https://openproject.romaine.life/wp/FP-6).
The injector starts through the
currentjunction and loaded the hook through it, so every release's hook had one name and a running app was handed its old copy again. On nelsonpc, 43 of 52 hooked processes still run v0.1.81 or v0.1.82, so the File > Open fix never reached them. The injector now loads the hook from its real version folder. The old copy then unloads once its injector exits, and the new one takes over on the app's next window event, as the existing takeover code intends. Nothing changes in the hook itself.Also adds
swap_test.py, a release swap under a running app on a hidden desktop, andhook_versions.py, which reads which release each running process holds.test-triggergains--repeatand--gap-msso it can act as a long-running app, and CI runs the injector's tests.Tested before merge: unit tests, and the swap test. With this injector, v1 answers the first dialog and v2 every one after the swap, three runs out of three. With main's injector, every dialog is answered by the copy loaded as
current. After the release I'll check withhook_versions.pythat the running apps on nelsonpc move to the new version.