fix snappy settings file path
This commit is contained in:
parent
9da248e9cb
commit
b0d707080b
@ -67,7 +67,8 @@ GuhSettings::GuhSettings(const SettingsRole &role, QObject *parent):
|
|||||||
|
|
||||||
QString basePath;
|
QString basePath;
|
||||||
if (!qgetenv("SNAP").isEmpty()) {
|
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/") {
|
} else if (settingsPrefix == "guh-test/") {
|
||||||
basePath = "/tmp/";
|
basePath = "/tmp/";
|
||||||
} else if (isRoot()) {
|
} else if (isRoot()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user