core: add by-pid symlinks to instance runtime paths

This commit is contained in:
outfoxxed 2024-08-28 17:53:39 -07:00
parent 9967e2e03b
commit af29bc277e
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
3 changed files with 74 additions and 11 deletions

View file

@ -9,8 +9,10 @@ public:
static QDir crashDir(const QString& shellId, const QDateTime& launchTime);
QDir* cacheDir();
QDir* baseRunDir();
QDir* runDir();
QDir* instanceRunDir();
void linkPidRunDir();
private:
enum class DirState {
@ -21,9 +23,11 @@ private:
QString shellId;
QDir mCacheDir;
QDir mBaseRunDir;
QDir mRunDir;
QDir mInstanceRunDir;
DirState cacheState = DirState::Unknown;
DirState baseRunState = DirState::Unknown;
DirState runState = DirState::Unknown;
DirState instanceRunState = DirState::Unknown;
};