diff --git a/src/main/main.ts b/src/main/main.ts index ea3c7b72..6c3a2cef 100644 --- a/src/main/main.ts +++ b/src/main/main.ts @@ -258,6 +258,7 @@ const createWindow = async (first = true) => { ...(nativeFrame && isWindows() && nativeFrameConfig.windows), }); + // From https://github.com/electron/electron/issues/526#issuecomment-1663959513 const bounds = store.get('bounds') as Rectangle | undefined; if (bounds) { const screenArea = screen.getDisplayMatching(bounds).workArea; @@ -311,6 +312,7 @@ const createWindow = async (first = true) => { }); ipcMain.on('app-restart', () => { + // Fix for .AppImage if (process.env.APPIMAGE) { app.exit(); app.relaunch({