| Summary: | Media Library template fails to launch when named anything but LibraryTemplate | ||
|---|---|---|---|
| Product: | [Developer tools] kapptemplate | Reporter: | Robert French <frenchrobertm> |
| Component: | general | Assignee: | Anne-Marie Mahfouf <annma> |
| Status: | REPORTED --- | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 0.1.251190 | ||
| Target Milestone: | --- | ||
| Platform: | Bazzite | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
SUMMARY The Multimedia Manager template does not launch unless named LibraryTemplate STEPS TO REPRODUCE 1. Make a template using "Multimedia Manager with Kirigami (Qt6)" 2. Name the project anything other than LibraryTemplate 3. Comment out line 59 of the top-level CMakeLists.txt (to prevent an unrelated appstreamcli build failure) 4. Build the app using flatpak-builder --install --force-clean --user app .flatpak-manifest.json OBSERVED RESULT The template fails to launch: QQmlApplicationEngine failed to load component qrc:/qt/qml/org/kde/kgamelauncher/qml/Main.qml:27:18: LibraryTemplateApplication is not a type EXPECTED RESULT The app launching SOFTWARE/OS VERSIONS (available in the Info Center app, or by running `kinfo` in a terminal window) Linux/KDE Plasma: Bazzite 43 KDE Plasma Version: 6.5.3 KDE Frameworks Version: 6.20.0 Qt Version: 6.10.1 ADDITIONAL INFORMATION The cause of the error is that line 27 of Main.qml contains a line that does not get updated. This results in it looking for LibraryTemplateApplication instead of {Actual app name}Application, failing to load as a result.