From c72f1a3fc064f61cc5c5a578d7350240e26a27af Mon Sep 17 00:00:00 2001 From: Kyiro <54126666+Kyiro@users.noreply.github.com> Date: Sun, 2 Oct 2022 21:37:10 +0200 Subject: [PATCH] paths: add DISCORD_USER_DATA_DIR support (#88) --- src/paths.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/paths.js b/src/paths.js index eb1b670..1cc5ca7 100644 --- a/src/paths.js +++ b/src/paths.js @@ -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'));