diff --git a/cmd/gui/main.js b/cmd/gui/main.js index e4c09cb..833a391 100644 --- a/cmd/gui/main.js +++ b/cmd/gui/main.js @@ -497,6 +497,11 @@ function createWindow() { const menu = Menu.buildFromTemplate([]); Menu.setApplicationMenu(menu); mainWindow = new BrowserWindow({ + // Window icon (taskbar/dock): same asset as the tray and package. + icon: path.join(__dirname, "build", "icon.png"), + // GNOME taskbar icons match the window's WM_CLASS (lowercase + // "modelrouter-gui") against StartupWMClass in the .desktop file. + backgroundColor: "#1f2937", width: 1280, height: 860, minWidth: 900, diff --git a/cmd/gui/package.json b/cmd/gui/package.json index 68afe84..4f34019 100644 --- a/cmd/gui/package.json +++ b/cmd/gui/package.json @@ -22,7 +22,7 @@ "build": { "appId": "com.modelrouter.gui", "productName": "ModelRouter", - "linux": { +"linux": { "target": [ "deb", "rpm", @@ -32,6 +32,11 @@ "icon": "build/icon.png", "maintainer": "ModelRouter", "synopsis": "ModelRouter Desktop", +"desktop": { + "entry": { + "StartupWMClass": "modelrouter-gui" + } + }, "extraResources": [ { "from": "bin/llmsproxy",