|
Fix electron version mismatch and KDE Wayland icon matching.
opencode-desktop.sh hardcoded /usr/bin/electron41 although the package
depends on electron42 and native modules are linked against electron42
ABI at build time. Switch the wrapper to electron42 so the runtime ABI
matches.
Drop set-desktop-name.patch. Upstream packages/desktop/package.json has
no desktopName key, and electron-builder injects "<appId>.desktop"
(currently "ai.opencode.desktop.desktop") into the unpacked app at
package time anyway, which overrode whatever the patch would have
written. Pin desktopName to $pkgname via a package()-time sed on the
installed package.json instead. ozone-wayland reads that key and sets
the running window's Wayland app_id to "opencode-desktop", so KDE
matches the window to /usr/share/applications/$pkgname.desktop
(StartupWMClass=$pkgname) and shows the right icon.
Verified on KDE Plasma Wayland: kwin scripting reports
resourceClass=opencode-desktop for the running window.
|