core/qmlglobal: expose cacheDir

This commit is contained in:
outfoxxed 2025-05-16 20:01:38 -07:00
parent fee4942771
commit 69c7f4fe77
No known key found for this signature in database
GPG key ID: 4C88A185FB89301E
3 changed files with 16 additions and 0 deletions

View file

@ -51,6 +51,7 @@ QString QsPaths::ipcPath(const QString& id) {
QDir* QsPaths::cacheDir() {
if (this->cacheState == DirState::Unknown) {
auto dir = QDir(QStandardPaths::writableLocation(QStandardPaths::CacheLocation));
dir = QDir(dir.filePath("by-shell"));
dir = QDir(dir.filePath(this->shellId));
this->mCacheDir = dir;