paths: add DISCORD_USER_DATA_DIR support (#88)

pull/96/head
Kyiro 2 years ago committed by GitHub
parent 78204759a3
commit c72f1a3fc0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save