Skip to content

Commit

Permalink
Close 602: Linux/Flatpak: default template TLS_server is missing
Browse files Browse the repository at this point in the history
Extend search for templates to /usr[/local]/share/xca"
  • Loading branch information
chris2511 committed Oct 24, 2024
1 parent 65c4601 commit 4d91738
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/db_temp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,16 @@ db_temp::db_temp() : db_x509name("templates")
tmpl->setAsPreDefined();
predefs << tmpl;

const QString appname = QCoreApplication::applicationName();
QStringList appdata = QStandardPaths::standardLocations(
QStandardPaths::AppDataLocation);

foreach(QString d, QStandardPaths::standardLocations(
QStandardPaths::AppDataLocation))
{
QStandardPaths::AppDataLocation))
appdata << d.replace(appname, "xca");

foreach(const QString &d, appdata) {
qDebug() << "Loading templates from" << d;
QFileInfoList list = QDir(d).entryInfoList(
QStringList("*.xca"),
QDir::Files | QDir::NoSymLinks |
Expand Down

0 comments on commit 4d91738

Please sign in to comment.