paths: add DISCORD_USER_DATA_DIR support (#88)
This commit is contained in:
parent
78204759a3
commit
c72f1a3fc0
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ exports.getExeDir = () => exeDir;
|
|||
|
||||
exports.init = () => {
|
||||
const appDir = 'discord' + (buildInfo.releaseChannel === 'stable' ? '' : buildInfo.releaseChannel); // Clean channel naming up later to util?
|
||||
userData = join(app.getPath('appData'), appDir);
|
||||
userData = process.env.DISCORD_USER_DATA_DIR ?? join(app.getPath('appData'), appDir);
|
||||
userDataVersioned = join(userData, buildInfo.version);
|
||||
|
||||
exeDir = dirname(app.getPath('exe'));
|
||||
|
|
Loading…
Reference in a new issue