From 08a18ce736fd85633c9ce55a6d5d64a3a5a59f35 Mon Sep 17 00:00:00 2001 From: Felitendo Date: Tue, 22 Sep 2026 20:32:31 +0200 Subject: [PATCH] fix: load qml from /qt/qml so the installed agent finds its types --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 82ebfdf..abde265 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -159,6 +159,8 @@ if(PFU_BUILD_AGENT) # The QML files sit next to the module's qmldir in the resources, so they # see each other (and the Theme singleton) without importing anything. + # Under /qt/qml, which the engine searches, or an installed agent finds no + # types (the build directory only works by its PlasmaFaceUnlock/qmldir). set(PFU_QML_FILES Theme FaceGlyph LockGlyph Checkmark Bubble TickRing Enroll PillButton) foreach(f ${PFU_QML_FILES}) set_source_files_properties(src/agent/qml/${f}.qml PROPERTIES QT_RESOURCE_ALIAS ${f}.qml) @@ -168,7 +170,7 @@ if(PFU_BUILD_AGENT) qt_add_qml_module(plasma-face-unlock-agent URI PlasmaFaceUnlock VERSION 1.0 - NO_RESOURCE_TARGET_PATH + RESOURCE_PREFIX /qt/qml SOURCES src/agent/previewitem.cpp src/agent/previewitem.h