From e7ef66cfb395a3586da07bd1a7bf135be60a5ced Mon Sep 17 00:00:00 2001 From: Brendan Forster Date: Mon, 19 Jul 2021 10:31:32 -0300 Subject: [PATCH] point window icon to new version (#561) --- app/src/main-process/app-window.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main-process/app-window.ts b/app/src/main-process/app-window.ts index c0fc14fd941..5ab5832c5e1 100644 --- a/app/src/main-process/app-window.ts +++ b/app/src/main-process/app-window.ts @@ -1,5 +1,6 @@ import { BrowserWindow, ipcMain, Menu, app, dialog } from 'electron' import { Emitter, Disposable } from 'event-kit' +import { join } from 'path' import { encodePathAsUrl } from '../lib/path' import { registerWindowStateChangedEvents } from '../lib/window-state' import { MenuEvent } from './menu' @@ -56,6 +57,8 @@ export class AppWindow { } else if (__WIN32__) { windowOptions.frame = false } else if (__LINUX__) { + windowOptions.icon = join(__dirname, 'static', 'logos', '512x512.png') + // relax restriction here for users trying to run app at a small // resolution and any other side-effects of dropping this restriction are // currently unsupported