fix snappy settings file path

This commit is contained in:
Michael Zanetti 2017-10-04 12:20:54 +02:00
parent 9da248e9cb
commit b0d707080b

View File

@ -67,7 +67,8 @@ GuhSettings::GuhSettings(const SettingsRole &role, QObject *parent):
QString basePath;
if (!qgetenv("SNAP").isEmpty()) {
basePath = QString(qgetenv("SNAP_DATA"));
basePath = QString(qgetenv("SNAP_DATA")) + "/";
settingsPrefix.clear(); // We don't want that in the snappy case...
} else if (settingsPrefix == "guh-test/") {
basePath = "/tmp/";
} else if (isRoot()) {