mirror of
https://github.com/Vencord/Vesktop.git
synced 2026-11-24 11:01:15 -08:00
autoStart: respect XDG_CONFIG_HOME
This commit is contained in:
1 file changed
+2
-1
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user