An approved and enabled Wine Access extension could remain completely
inactive: no Wine D-Bus endpoint was published and no helper was launched,
leaving even Wine Notepad silent. The extension implemented on_ready(),
on_enabled(), and on_disabled(), but the installed Orca 51 extension loader
does not invoke those callbacks.
Start Wine Access from set_up_commands(), which Orca's loader actually
calls, after preserving the base class setup and checking the disabled
state. Override disable() to remove timers, stop managed helpers, and
unpublish the endpoint before delegating to Orca's base implementation.
Keep on_shutdown() cleanup, the existing delayed bus startup retry, and
the guard against duplicate startup.
Add five lifecycle regression tests using an installed Orca's actual
extension loader, with helper launches, the bus, and timers mocked. Cover
startup and repeated setup, disabled extensions, delayed bus availability,
shutdown, and disabling both active and pending startup. Document how to
run these checks without changing the running reader.
The existing integration harness publishes its own endpoint and starts
the helper directly, while the API check only instantiates the extension
and checks APIs. Neither exercised normal extension startup, which let
this failure escape their coverage.
Validation:
- Before the fix, four of the five lifecycle tests failed; all five pass
with the corrected callbacks:
GSETTINGS_BACKEND=memory python3 orca/tests/test_lifecycle.py
- All 45 existing extension tests passed:
python3 -m pytest orca/tests/test_presenter.py orca/tests/test_manager.py
orca/tests/test_service.py orca/tests/test_review.py
- The installed-Orca API check passed:
GSETTINGS_BACKEND=memory python3 orca/tests/orca_api_check.py
- A private D-Bus probe loaded the approved package through Orca's actual
loader, verified delayed publication of the Wine interface and helper
supervision timer, and verified loader shutdown cleanup.
- Existing Wine integration checks passed on a private display, session
bus, and disposable prefix:
dbus-run-session -- xvfb-run -a python3 orca/tests/integration_test.py
--build-dir build
These covered Notepad editing feedback, menus, save dialog controls and
message, NVDA Controller speech/cancellation/braille calls, and helper
shutdown after the prefix became idle. Recorded output does not prove
physical braille or audible speech.
- After installing the fix, reapproving the extension, and restarting
Orca, the user confirmed successful live use in three applications.
- git diff --check passed.
Publish the Wine Access protocol on Orca’s service connection and manage helpers per active Wine prefix. Add presentation, dialog capture, documentation, and tests.
Preserve the Cthulhu default and shared helper code. Document the single-reader limit and verify Orca cleanup leaves Cthulhu-managed helpers alone. Retain integration artifacts on exceptional failures.
Validation: 45 Orca unit tests passed; 11 existing test-environment checks passed; version metadata checks, Python compilation, and staged whitespace checks passed. Full Wine integration and live speech/braille remain unverified here because MinGW, Xvfb, and Orca are unavailable.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>