on xenial help sign in
Use QStandardPaths::writableLocation(QStandardPaths::CacheLocation)
ac6bd3fAlbert Astals Cid
plugins/SessionGrabber/sessiongrabber.cpp+1−1
@@ -24,7 +24,7 @@
24
24
25static QString cacheFolder()
25static QString cacheFolder()
26{
26{
27− return QDir::homePath() + "/.cache/app_shots/";
27+ return QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + "/app_shots/";
28}
28}
29
29
30static QString cachePath(const QString &appId)
30static QString cachePath(const QString &appId)