Use QStandardPaths::writableLocation(QStandardPaths::CacheLocation)
commitac6bd3f37aae1912c784a5c04fa48935cf80f5c3
authorAlbert Astals Cid <albert.astals@canonical.com>
dateThu 30 Apr 2015, 15:40 (11 years ago)
parent334567b
plugins/SessionGrabber/sessiongrabber.cpp+1−1
@@ -24,7 +24,7 @@
2424
2525static QString cacheFolder()
2626{
27− return QDir::homePath() + "/.cache/app_shots/";
27+ return QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + "/app_shots/";
2828}
2929
3030static QString cachePath(const QString &appId)