From e09d07c887c9645671eec6139fd4885a9799f16e Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 24 Nov 2026 21:43:51 +0100 Subject: [PATCH] flatpak: use 'startvesktop' for autostart --- 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 d2746002..124b0a5a 100644 --- a/src/main/autoStart.ts +++ b/src/main/autoStart.ts @@ -23,7 +23,8 @@ interface AutoStart { function getEscapedCommandLine() { // inside an AppImage, argv[0] is a temporary mount - const exe = (app.isPackaged && process.env.APPIMAGE) || process.execPath; + // inside the Flatpak, we use a wrapper script `startvesktop` + const exe = (app.isPackaged && process.env.APPIMAGE) || (IS_FLATPAK ? "startvesktop" : process.execPath); const args = process.argv .slice(1) // skip the executable path .filter(arg => arg !== "--start-minimized" && arg !== "-m" && !arg.startsWith("discord://"));