Persist app data between install versions
This commit is contained in:
parent
b6e9a54951
commit
10678096e5
@ -280,7 +280,16 @@ Application::Application(int &argc, char **argv) : QApplication(argc, argv)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
QDir foo(FS::PathCombine(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation), ".."));
|
QDir foo;
|
||||||
|
if (DesktopServices::isSnap())
|
||||||
|
{
|
||||||
|
foo = QDir(getenv("SNAP_USER_COMMON"));
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
foo = QDir(FS::PathCombine(QStandardPaths::writableLocation(QStandardPaths::AppDataLocation), ".."));
|
||||||
|
}
|
||||||
|
|
||||||
dataPath = foo.absolutePath();
|
dataPath = foo.absolutePath();
|
||||||
adjustedBy = "Persistent data path";
|
adjustedBy = "Persistent data path";
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user