mirror of
https://github.com/Lightcord/Lightcord.git
synced 2025-04-12 00:55:40 +02:00
Sync with rauenzi/BetterDiscordApp c2b1a5c
fix linux datapath
This commit is contained in:
parent
e1cd3984f1
commit
fc6f916f39
4
BetterDiscordApp/dist/index.js
vendored
4
BetterDiscordApp/dist/index.js
vendored
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…
x
Reference in New Issue
Block a user