Desktop entry + Wayland app id so the taskbar shows the app icon
This commit is contained in:
parent
4d9489b5ac
commit
cbbe779faa
3 changed files with 50 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue