Repository navigation
Conversation
Really? I thought this was pulled in with pretty much any desktop environment except for maybe the pure console ones? |
|
You're right for the big desktops. I checked the Ubuntu desktop ISO manifests for 24.04, 25.10 and 26.04, and all three ship So I'd frame this as fewer dependencies more than as a fix. GIO is already on every system that has glibmm, since glibmm is built on it. Going through GIO's C API drops glibmm, giomm and libsigc++ from the link without losing anything. If you'd rather keep glibmm, I'm fine closing this. I've updated the description so it doesn't claim more than that. |
|
So, Orca moving into the winebridge is a problem here. This will disrupt my future plans to add potentially extensive logging into the backend. I'm not super clear how exactly this would also allow us to, in future, grant the backend private internal access to functionality it may need in future via this mechanism. |
Signed-off-by: Quin Gillespie <[email protected]>
Signed-off-by: Quin Gillespie <[email protected]>
… prism Signed-off-by: Quin Gillespie <[email protected]>
Signed-off-by: Quin Gillespie <[email protected]>
5a1f09e to
ec09090
Compare
|
@trypsynth How exactly would we annotate the native backend with logging stuff (or anything else taht requires Prism's internals) should this PR be merged as-is? Right now bridges cannot directly use Prism's internals (which is intentional -- it would risk a load loop). |
|
@ethindp fair enough, I need to think about this a good bit more I think. |
|
@trypsynth Sounds good, thank you for your contributions so far! I think it's about time we cut another release, to be honest. |
The Orca backend and the Linux power notifier are prism's only users of glibmm, giomm and libsigc++. Full desktops such as Ubuntu's ship them, but minimal installs, containers and CI runners often don't. Where prism is built with them,
libprism.solinks them directly, so a machine without them can't load prism at all. GIO is already on every system that has glibmm, since glibmm is built on it, so going through GIO's C API drops three libraries from the link without losing anything.The Orca bridge in
winelibs/orcaalready speaks Orca's D-Bus protocol, both dialects, in plain GIO C for the Wine build.What this does
winelibs/orca/bridge.cin and uses the same bridge-basedOrcaBackendas Windows, so both platforms share one implementation. The Wine check stays Windows-only.PRISM_ORCA_BRIDGE_NATIVEdrops the bridge'sms_abiattribute, which only matters under Wine.PrepareForSleepthrough GIO's C API, on its own main context as before.gio-2.0instead ofglibmm-2.68andgiomm-2.68.Gio::init()goes fromprism_init,flake.nixdrops glibmm and libsigc++, the wheel build stops building them, and the README's Linux note is updated.initializenow returnsPRISM_ERROR_BACKEND_NOT_AVAILABLEifntdll.dllcan't be found, where it used to return an internal error.Testing
On Ubuntu 24.04 (GitHub's runner) with
libglib2.0-devand no glibmm:orca=on.ldd libprism.soshowslibgio-2.0,libgobject-2.0,libglib-2.0andlibstdc++, and nothing from glibmm, giomm or sigc++.initializereturnsBackend not available.prism_availability_auto_power_supportedreturns true, and a context with an availability callback and automatic power management starts and shuts down cleanly.Windows x64, x86 and ARM64 and macOS still build and pass the same .NET suite. Not tested against a running Orca, since CI has no desktop session with Orca in it.