--- a/src/CMakeLists.txt	2024-11-17 09:49:24.950405832 +0100
+++ b/src/CMakeLists.txt	2024-11-17 09:50:09.911456731 +0100
@@ -39,7 +39,9 @@
     Qt6XdgIconLoader
 )
 
-lxqt_query_qt(_QT_PLUGINS_DIR QT_INSTALL_PLUGINS)
+if (NOT _QT_PLUGINS_DIR)
+    lxqt_query_qt(_QT_PLUGINS_DIR QT_INSTALL_PLUGINS)
+endif()
 
 if (NOT _QT_PLUGINS_DIR)
     message(FATAL_ERROR "Qt6 plugin directory cannot be detected.")

