autoStart: respect XDG_CONFIG_HOME

This commit is contained in:
V 2023-06-21 17:09:04 +02:00
parent 9f9f665ede
commit fd45068a46
No known key found for this signature in database
GPG key ID: A1DC0CFB5615D905

View file

@ -15,7 +15,8 @@ interface AutoStart {
} }
function makeAutoStartLinux(): 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"); const file = join(dir, "vencord.desktop");
return { return {