|
|
@ -18,7 +18,7 @@ exports.getExeDir = () => exeDir;
|
|
|
|
|
|
|
|
|
|
|
|
exports.init = () => {
|
|
|
|
exports.init = () => {
|
|
|
|
const appDir = 'discord' + (buildInfo.releaseChannel === 'stable' ? '' : buildInfo.releaseChannel); // Clean channel naming up later to util?
|
|
|
|
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);
|
|
|
|
userDataVersioned = join(userData, buildInfo.version);
|
|
|
|
|
|
|
|
|
|
|
|
exeDir = dirname(app.getPath('exe'));
|
|
|
|
exeDir = dirname(app.getPath('exe'));
|
|
|
|