Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/utils/userDataManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ function getCachePath(): string {
return path.join(process.env.XDG_CACHE_HOME, restClientDir);
}

if (os.platform() === 'linux') {
return path.join(os.homedir(), '.cache', restClientDir);
}

return rootPath;
}

Expand All @@ -30,6 +34,10 @@ function getStatePath(): string {
return path.join(process.env.XDG_STATE_HOME, restClientDir);
}

if (os.platform() === 'linux') {
return path.join(os.homedir(), '.local', 'state', restClientDir);
}

return rootPath;
}

Expand Down