on xenial help sign in
restore the same old path behavior (~/.cache/unity8)
e80cbb7Lukáš Tinkl
plugins/Utils/windowstatestorage.cpp+1−1
@@ -36,7 +36,7 @@ inline QString sanitiseString(QString string) {
36WindowStateStorage::WindowStateStorage(QObject *parent):
36WindowStateStorage::WindowStateStorage(QObject *parent):
37 QObject(parent)
37 QObject(parent)
38{
38{
39− const QString dbPath = QStandardPaths::writableLocation(QStandardPaths::CacheLocation);
39+ const QString dbPath = QStandardPaths::writableLocation(QStandardPaths::GenericCacheLocation) + QStringLiteral("/unity8/");
40 m_db = QSqlDatabase::addDatabase(QStringLiteral("QSQLITE"));
40 m_db = QSqlDatabase::addDatabase(QStringLiteral("QSQLITE"));
41 QDir dir;
41 QDir dir;
42 dir.mkpath(dbPath);
42 dir.mkpath(dbPath);