You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build & deployment friction on Nix/Flatpak (plus notes on QML component lifetime) #7
Building and packaging outside the standard happy path (specifically on Nix and Flatpak) involves several friction points:
Target failure:QtBridgeDeploy_SourceCode_Linux_MacOS fails on Nix unless overridden in Directory.Build.targets (IgnoreExitCode + warning).
AppHost binary:QtBridgePrepareAppHost picks the wrong host binary by default (required a target override setting AppHostSourcePath).
Missing publish artifacts:dotnet publish omits binaries/files like player_app, Application, qt_bridge_metadata.json, and qtdeploy.txt, requiring manual copying in Nix postInstall and Flatpak manifests.
Platform themes: Platform theme plugins are not deployed, breaking Qt's styleHints.colorScheme (solved by reading the XDG portal via busctl/gdbus).
Paths & Configuration:QtDir and CMAKE_PREFIX_PATH must be set manually. Flatpak required building a fake Qt prefix with symlinks.
Project boilerplate: The .csproj requires an extensive block of RID/arch properties and conditions.
(Note / Potential Lifecycle Observation) QML Component Creation/Destruction Crash:
While building, I encountered a potential crash when rapidly creating and destroying QML components using Loader/Component (e.g., toggling Queue and Lyrics panels quickly). I worked around this by instantiating the panels once and toggling their parent, opacity, and visibility instead. This might be an issue with object lifetimes between C# view models and destroyed QML objects, though it could also be specific to my implementation. Mentioning it here just in case!
Steps to reproduce
.
Expected behavior
Suggestion: Provide a documented Nix/Flatpak packaging recipe and ensure dotnet publish bundles all required metadata/binaries out of the box.
Activity
github-actions commentedon Nov 12, 2026
Thank you for the report. It is now tracked as QTBRIDGES-464 in the Qt bug tracker. Please follow up there.