Sync with rauenzi/BetterDiscordApp c2b1a5c

fix linux datapath
This commit is contained in:
Jean Ouina 2020-07-28 03:32:49 +02:00
parent e1cd3984f1
commit fc6f916f39
2 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -11,7 +11,7 @@ const releaseChannel = DiscordNative.globals ? DiscordNative.globals.releaseChan
let dataPath = "";
if (process.platform === "win32") dataPath = process.env.APPDATA;
else if (process.platform === "darwin") dataPath = path.join(process.env.HOME, "Library", "Preferences");
else dataPath = path.join(process.env.XDG_CONFIG_HOME ? process.env.XDG_CONFIG_HOME : process.env.HOME, ".config");
else dataPath = process.env.XDG_CONFIG_HOME ? process.env.XDG_CONFIG_HOME : path.join(process.env.HOME, ".config");
dataPath = path.join(dataPath, "BetterDiscord");
export default new class DataStore {