From 6791d874e3ee129969c8c0502df7d2d08f884b43 Mon Sep 17 00:00:00 2001 From: Sylvie Crowe <107814465+oneirocosm@users.noreply.github.com> Date: Mon, 4 Dec 2023 22:47:01 -0800 Subject: [PATCH] Add Waveterm Icon to Linux (#120) * add icon for Linux The app icon previously did not show up in Linux. This change fixes that by providing the wave-logo-dark.png to the electron Browser Window. * set the icon to only use the direct path on linux The previous change was only required on linux and not on mac. This ensures the old behavior will continue to be done on mac while using the new behavior on linux. --- src/electron/emain.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/electron/emain.ts b/src/electron/emain.ts index 9e757e81..aa9c249f 100644 --- a/src/electron/emain.ts +++ b/src/electron/emain.ts @@ -250,6 +250,7 @@ function createMainWindow(clientData) { minWidth: 800, minHeight: 600, transparent: true, + icon: (unamePlatform == "linux") ? "public/logos/wave-logo-dark.png" : undefined, webPreferences: { preload: path.join(getAppBasePath(), DistDir, "preload.js"), },