mirror of
https://github.com/Vencord/Vesktop.git
synced 2026-11-28 04:46:23 -08:00
flatpak: use 'startvesktop' for autostart
This commit is contained in:
1 file changed
+2
-1
@@ -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://"));
|
||||
|
||||
Reference in new issue
Block a user