From f671cea71baf64aeddf78543fc6c04155feebba0 Mon Sep 17 00:00:00 2001 From: Christian Hohnstaedt Date: Mon, 24 Mar 2025 00:51:22 +0100 Subject: [PATCH] Close #602: Linux/Flatpak: default template TLS_server is missing Add Linux INSTALL_DATA_PREFIX to the list of search paths --- lib/db_temp.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/lib/db_temp.cpp b/lib/db_temp.cpp index 412531bf..62d6819c 100644 --- a/lib/db_temp.cpp +++ b/lib/db_temp.cpp @@ -33,9 +33,14 @@ db_temp::db_temp() : db_x509name("templates") tmpl->setAsPreDefined(); predefs << tmpl; - foreach(QString d, QStandardPaths::standardLocations( - QStandardPaths::AppDataLocation)) + QStringList dirs = QStandardPaths::standardLocations( + QStandardPaths::AppDataLocation); +#ifdef INSTALL_DATA_PREFIX + dirs << QString(INSTALL_DATA_PREFIX); +#endif + foreach(QString d, dirs) { + qDebug() << "Looking for templates at" << d; QFileInfoList list = QDir(d).entryInfoList( QStringList("*.xca"), QDir::Files | QDir::NoSymLinks |