autoStart: respect XDG_CONFIG_HOME
This commit is contained in:
parent
9f9f665ede
commit
fd45068a46
1 changed files with 2 additions and 1 deletions
|
@ -15,7 +15,8 @@ interface AutoStart {
|
|||
}
|
||||
|
||||
function makeAutoStartLinux(): AutoStart {
|
||||
const dir = join(process.env.HOME!, ".config", "autostart");
|
||||
const configDir = process.env.XDG_CONFIG_HOME || join(process.env.HOME!, ".config");
|
||||
const dir = join(configDir, "autostart");
|
||||
const file = join(dir, "vencord.desktop");
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in a new issue