Bug 512964 - Media Library template fails to launch when named anything but LibraryTemplate
Summary: Media Library template fails to launch when named anything but LibraryTemplate
Status: REPORTED
Alias: None
Product: kapptemplate
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: 0.1.251190
Platform: Bazzite Linux
: NOR normal
Target Milestone: ---
Assignee: Anne-Marie Mahfouf
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-05 01:59 UTC by Robert French
Modified: 2025-12-05 01:59 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert French 2025-12-05 01:59:03 UTC
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.