From fd45068a464fef5da0a9ccf1bacae17c6c8eda32 Mon Sep 17 00:00:00 2001 From: V Date: Wed, 21 Jun 2023 17:09:04 +0200 Subject: [PATCH] autoStart: respect XDG_CONFIG_HOME --- src/main/autoStart.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/autoStart.ts b/src/main/autoStart.ts index 17ee6fd..1a31b07 100644 --- a/src/main/autoStart.ts +++ b/src/main/autoStart.ts @@ -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 {