Add ability to report version to cthulhu.

This commit is contained in:
Storm Dragon committed 2026-10-24 15:08:19 -04:00
1 parent 17052c5147
commit 24c35d7954
3 files changed
+13 -1

No files matched your search

+7
View File
@@ -151,6 +151,13 @@ does not ignore; a source archive without `.git` reports revision `unavailable`.
It identifies the helper sidecar being executed, rather than a separate
installed version file or the installed package database.
The sidecar also embeds the release as a NUL-terminated `YYYY.MM.DD` string
in the ELF section `.wine_access.version`. Readers can inspect that section
without executing the helper or initializing Wine. Updated Cthulhu builds
append `wine-access YYYY.MM.DD` to command-line and spoken version reports
when the selected installed helper provides this metadata. This identifies
the files on disk; a helper already running can still use an older build.
Query an installed executable directly, for example:
```sh
@@ -1,6 +1,6 @@
# Maintainer: Storm Dragon <storm_dragon@stormux.org>
pkgname=wine-access-git
pkgver=r60.gde31e5b
pkgver=r61.g17052c5
pkgrel=1
pkgdesc='Wine accessibility helper with MSAA, NVDA Controller, and Tolk compatibility for screen readers'
arch=('x86_64')
+5
View File
@@ -35,6 +35,11 @@
#include <string>
namespace {
// Read directly by readers without starting Wine or initializing a prefix.
// Keep this in the sidecar so it identifies the installed executable itself.
__attribute__((used, section(".wine_access.version")))
const char installedVersion[] = WINE_ACCESS_VERSION;
ReaderEndpoint readerEndpoint = CthulhuEndpoint;
constexpr int DBUS_TIMEOUT_MS = 500;
GDBusConnection *connection = nullptr;