Unverified Commit 0ba2b0d1 authored by azubieta's avatar azubieta

Add /etc to the config search locations

parent 1d2267b4
......@@ -40,10 +40,11 @@ void Settings::setOCSProviders(QStringList ocsProviders) {
* @return root node of the configuration file
*/
YAML::Node Settings::loadProvidersConfigFile() {
if (QFile::exists("appimage-providers.yaml"))
return YAML::LoadFile("appimage-providers.yaml");
QStringList configLocations;
configLocations.append(".");
configLocations.append(QStandardPaths::standardLocations(QStandardPaths::ConfigLocation));
configLocations.append("/etc");
QStringList configLocations = QStandardPaths::standardLocations(QStandardPaths::ConfigLocation);
for (const QString& location: configLocations) {
QString filePath = location + "/appimage-providers.yaml";
qDebug() << "trying providers configuration file: " + filePath;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment