Create standalone Wine accessibility helper
This commit is contained in:
commit
ed7ff763fb
7 files changed
+932
No files matched your search
@@ -0,0 +1,82 @@
|
||||
# Wine Access
|
||||
|
||||
`wine-access` is the standalone Wine-hosted accessibility helper for Cthulhu
|
||||
and other readers that implement the Cthulhu D-Bus service.
|
||||
|
||||
It provides two independent capabilities:
|
||||
|
||||
- an MSAA/WinEvent reader for standard Wine controls;
|
||||
- NVDA Controller 1, 2, and 3 plus Tolk compatibility for applications using
|
||||
`nvdaControllerClient32.dll`, `nvdaControllerClient64.dll`, or `Tolk.dll`.
|
||||
|
||||
The compatibility window is hidden and non-activating. It is expected to be
|
||||
invisible; the important endpoint is the local Wine RPC server registered by
|
||||
the helper. The helper forwards speech, braille, cancellation, and standard
|
||||
control events to `org.stormux.Cthulhu1.Service` on the session D-Bus.
|
||||
|
||||
The executable is named `cthulhu-wine-access.exe` for compatibility with the
|
||||
Cthulhu-Go supervisor.
|
||||
|
||||
## Requirements
|
||||
|
||||
Building requires an x86_64 Linux host with:
|
||||
|
||||
- CMake 3.20 or newer;
|
||||
- `pkg-config` and the GLib/GIO development files;
|
||||
- Wine development tools: `winegcc`, `wineg++`, and `widl`.
|
||||
|
||||
The target is a Winelib executable. A 32-bit build is not provided by this
|
||||
project yet; it needs a 32-bit Winegcc and 32-bit GLib/GIO development setup.
|
||||
|
||||
## Build
|
||||
|
||||
The convenience script builds in `./build` and installs to the per-user Cthulhu
|
||||
libexec directory:
|
||||
|
||||
```sh
|
||||
./build.sh
|
||||
```
|
||||
|
||||
Alternative build and install locations may be supplied as positional
|
||||
arguments. The second argument is the installation prefix, not the final
|
||||
helper directory:
|
||||
|
||||
```sh
|
||||
./build.sh /tmp/wine-access-build "$HOME/.local"
|
||||
```
|
||||
|
||||
That installs the helper and its Winelib sidecar as:
|
||||
|
||||
```text
|
||||
$prefix/libexec/cthulhu/wine/cthulhu-wine-access.exe
|
||||
$prefix/libexec/cthulhu/wine/cthulhu-wine-access.exe.so
|
||||
```
|
||||
|
||||
For Cthulhu-Go, either set `CTHULHU_WINE_ACCESS_HELPER` to the installed
|
||||
executable or place it at:
|
||||
|
||||
```text
|
||||
$HOME/.local/libexec/cthulhu/wine/cthulhu-wine-access.exe
|
||||
```
|
||||
|
||||
The helper is started automatically when Cthulhu-Go detects an active Wine
|
||||
loader for the same user and prefix. It requires the Go service to be running;
|
||||
it exits if `org.stormux.Cthulhu1.Service` is unavailable.
|
||||
|
||||
## Protocol and behavior
|
||||
|
||||
`nvdaController.idl` contains the compatible local RPC interfaces. The helper
|
||||
registers the legacy `NvdaCtlr` endpoint and the session/desktop-specific
|
||||
endpoint used by newer clients. It intentionally preserves the standard
|
||||
controller behavior for plain speech and cancellation while returning the
|
||||
documented unsupported status for SSML speaking-state callbacks that Cthulhu
|
||||
cannot currently implement accurately.
|
||||
|
||||
The standard-control reader is deliberately limited to native Wine controls.
|
||||
Custom-drawn, DirectX, and game-specific accessibility APIs remain the
|
||||
responsibility of the application or its accessibility middleware.
|
||||
|
||||
## License
|
||||
|
||||
The helper source is available under the terms of LGPL-2.1-or-later. See
|
||||
`LICENSE`.
|
||||
Reference in new issue
Block a user