flatpak: use 'startvesktop' for autostart

This commit is contained in:
Vendicated committed 2026-11-24 21:43:51 +01:00
1 parent d5669a024c
commit e09d07c887
1 file changed
+2 -1
+2 -1
View File
@@ -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://"));