File > Open works again: the hook finds the dialog DLL beside itself (FP-5) #11

Merged
nelson merged 1 commit from fp-5-dialog-dll-beside-hook into main 2026-11-07 13:26:05 -08:00
Owner

PR 1 of 1: fixes File > Open silently cancelling (https://openproject.romaine.life/wp/FP-5).

The hook looked for fzt_picker_frontend.dll only in ~\bin and the dev checkout's frontend\cgo. Releases install it beside the hook in C:\Program Files\at-home\fzt-picker\<tag>, and neither old path exists on nelsonpc, so every hooked File > Open came back cancelled with no dialog. picker.log shows it for real apps. The hook now looks only in its own folder, which is the one place a release puts the DLL. Removed: both old paths.

Also adds the hidden-desktop hook test (tools/hidden-desktop/hook_test.py, documented in TESTING.md), which found this, and runs the hook's unit tests in CI.

Tested before merge: the unit tests, and the hook test on a hidden desktop. The installed hook fails with not found, while the new one, built locally, reports looking in its own folder. The full dialog needs the CI-built Go DLL beside the hook, so it gets the same hook test on the release. Apps already running keep the hook they loaded until they restart.

PR 1 of 1: fixes File > Open silently cancelling (https://openproject.romaine.life/wp/FP-5). The hook looked for `fzt_picker_frontend.dll` only in `~\bin` and the dev checkout's `frontend\cgo`. Releases install it beside the hook in `C:\Program Files\at-home\fzt-picker\<tag>`, and neither old path exists on nelsonpc, so every hooked File > Open came back cancelled with no dialog. `picker.log` shows it for real apps. The hook now looks only in its own folder, which is the one place a release puts the DLL. Removed: both old paths. Also adds the hidden-desktop hook test (`tools/hidden-desktop/hook_test.py`, documented in TESTING.md), which found this, and runs the hook's unit tests in CI. Tested before merge: the unit tests, and the hook test on a hidden desktop. The installed hook fails with `not found`, while the new one, built locally, reports looking in its own folder. The full dialog needs the CI-built Go DLL beside the hook, so it gets the same hook test on the release. Apps already running keep the hook they loaded until they restart.
File > Open works again: the hook finds the dialog DLL beside itself (FP-5)
All checks were successful
Build / windows (pull_request) Successful in 1m3s
Build / macos (pull_request) Successful in 1m17s
Build / pcs (pull_request) Has been skipped
Build / home-sync (pull_request) Successful in 0s
b094931fda
nelson merged commit f6d8248c99 into main 2026-11-07 13:26:05 -08:00
nelson deleted branch fp-5-dialog-dll-beside-hook 2026-11-07 13:26:06 -08:00
Sign in to join this conversation.
No description provided.