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 |