mirror of
https://gitcode.com/JianFeeeee/ModelRouter.git
synced 2026-09-20 00:48:00 +00:00
Window/taskbar icon never showed because the packaged .desktop had StartupWMClass=ModelRouter while the live window WM_CLASS is the lowercase app class 'modelrouter-gui' — no match, so GNOME fell back to the default Electron icon. - main.js: set BrowserWindow icon asset + backgroundColor (window paints correctly with frameless titlebar and provides the taskbar's default icon) - package.json: build.linux.desktop.entry.StartupWMClass now equals the real WM_CLASS so packaged installs match too - local integration: user-level .desktop installed at ~/.local/share/applications/modelrouter-gui.desktop (points at the unpacked binary) so GNOME resolves the icon immediately