Skip to content

Commit f671cea

Browse files
committed
Close #602: Linux/Flatpak: default template TLS_server is missing
Add Linux INSTALL_DATA_PREFIX to the list of search paths
1 parent a017287 commit f671cea

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

lib/db_temp.cpp

+7-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,14 @@ db_temp::db_temp() : db_x509name("templates")
3333
tmpl->setAsPreDefined();
3434
predefs << tmpl;
3535

36-
foreach(QString d, QStandardPaths::standardLocations(
37-
QStandardPaths::AppDataLocation))
36+
QStringList dirs = QStandardPaths::standardLocations(
37+
QStandardPaths::AppDataLocation);
38+
#ifdef INSTALL_DATA_PREFIX
39+
dirs << QString(INSTALL_DATA_PREFIX);
40+
#endif
41+
foreach(QString d, dirs)
3842
{
43+
qDebug() << "Looking for templates at" << d;
3944
QFileInfoList list = QDir(d).entryInfoList(
4045
QStringList("*.xca"),
4146
QDir::Files | QDir::NoSymLinks |

0 commit comments

Comments
 (0)