From e9c472757a08a7ad4c91d1d1b60fae2f95628987 Mon Sep 17 00:00:00 2001 From: Fernando Pinedo Date: Fri, 5 Jan 2024 16:40:23 -0300 Subject: [PATCH] FIX: fixed trayicon on linux not appearing --- electron/main/index.ts | 6 ++++-- public/favicon-linux.png | Bin 0 -> 1286 bytes 2 files changed, 4 insertions(+), 2 deletions(-) create mode 100644 public/favicon-linux.png diff --git a/electron/main/index.ts b/electron/main/index.ts index 8174276..c396917 100644 --- a/electron/main/index.ts +++ b/electron/main/index.ts @@ -6,7 +6,7 @@ import fs from "fs" import { menu, getTrayMenu } from './menu' import { WINDOW_CLOSE_EVENT, SETTINGS_CHANGE_EVENT } from '../constants'; import CONFIG from "../config" -import { isDev, isMac, isWindows } from '../detect-platform'; +import { isDev, isLinux, isMac, isWindows } from '../detect-platform'; import { initializeAutoUpdate, checkForUpdates } from './auto-update'; import { fixElectronCors } from './cors'; import { loadBuffer, contentSaved } from './buffer'; @@ -145,7 +145,9 @@ function createTray() { let img if (isMac) { img = nativeImage.createFromPath(join(process.env.PUBLIC, "iconTemplate.png")) - } else { + } else if(isLinux){ + img = nativeImage.createFromPath(join(process.env.PUBLIC, 'favicon-linux.png')); + } else{ img = nativeImage.createFromPath(join(process.env.PUBLIC, 'favicon.ico')); } tray = new Tray(img); diff --git a/public/favicon-linux.png b/public/favicon-linux.png new file mode 100644 index 0000000000000000000000000000000000000000..60a6f98fd3f9dc0bedd7fbb7d0188ea89033f01d GIT binary patch literal 1286 zcmV+h1^N1kP)5uKV4CW$UcB4fC26B4(~0fphFKmjTAUf+wUq@}m_R$9C>JqZcTeb0HH z=e+NG&pqck48e_I>s~XAeOVB64luC*Ovr)=6Pd9P+j##J$>SJA-UE@ffcuYP^0ppS zS9-~@7;qj8YFp*K;FA^fybz+eB;E+48lSOYn!^(i_y;)ne%D+AJ9g(m^c^9#RszqX z8hoLQ851Zgu7D+N#({U+B)3uo7`9brLpR}qfIAlo%e?$>T!w$qMjYJxla%wRFnab= z+HBG6%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