Sync with rauenzi/BetterDiscordApp c2b1a5c
fix linux datapath
This commit is contained in:
parent
e1cd3984f1
commit
fc6f916f39
File diff suppressed because one or more lines are too long
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue