Desktop entry + Wayland app id so the taskbar shows the app icon

This commit is contained in:
Avi 2026-08-24 11:46:48 -05:00
commit cbbe779faa
3 changed files with 50 additions and 0 deletions

View file

@ -563,6 +563,13 @@ function createWindow(): void {
});
}
// Wayland has no per-window icons: the taskbar resolves the running app's id
// through an installed .desktop file instead (see
// scripts/install-desktop-entry.sh). Pin the identity before `ready`.
if (process.platform === 'linux') {
app.setDesktopName('keynectr.desktop');
}
app.whenReady().then(() => {
protocol.handle('app', (request) => {
const { pathname } = new URL(request.url);