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
|
||||
{
|
||||
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();
|
||||
adjustedBy = "Persistent data path";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user