diff --git a/src/ipcMain/index.ts b/src/ipcMain/index.ts index 1f6166e77..2db95870f 100644 --- a/src/ipcMain/index.ts +++ b/src/ipcMain/index.ts @@ -7,7 +7,11 @@ import IpcEvents from "../utils/IpcEvents"; import "./updater"; -const DATA_DIR = join(app.getPath("userData"), "..", "Vencord"); +const DATA_DIR = process.env.VENCORD_USER_DATA_DIR ?? ( + process.env.DISCORD_USER_DATA_DIR + ? join(process.env.DISCORD_USER_DATA_DIR, "..", "VencordData") + : join(app.getPath("userData"), "..", "Vencord") +); const SETTINGS_DIR = join(DATA_DIR, "settings"); const QUICKCSS_PATH = join(SETTINGS_DIR, "quickCss.css"); const SETTINGS_FILE = join(SETTINGS_DIR, "settings.json");