feat(desktop): self-update appimages in place (#2843)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-19 19:06:53 +02:00
1 parent 98a42f612b
commit c4f0b2ece0
20 files changed
+2210 -57

No files matched your search

+2 -2
View File
@@ -11,7 +11,7 @@ import type {
TrayActionPayload,
TrayRuntimeStatePayload,
} from '@electron/common/Types';
import {getStableRelaunchOptions} from '@electron/main/LinuxLaunchPath';
import {relaunchStableLaunchPath} from '@electron/main/LinuxLaunchPath';
import {onLocaleChange, t} from '@electron/main/MainI18n';
import {app, type BrowserWindow, clipboard, Menu, nativeImage, Tray} from 'electron';
@@ -277,7 +277,7 @@ function restartFromTray(): void {
trayRestartRequested = true;
controller?.setQuitting(true);
destroyDesktopTray();
app.relaunch(getStableRelaunchOptions());
relaunchStableLaunchPath();
app.quit();
armTrayForcedExit('restart');
}