Fix GoofCord desktop matching with lowercase StartupWMClass

Electron sets the Wayland app_id from the package name (lowercase
"goofcord") but the desktop file had StartupWMClass=GoofCord
(capitalized), causing GNOME to not match the window to its icon.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
ediblerope 2026-04-09 20:04:48 +01:00
parent 9fb0c0a792
commit ca4178d3ba

View file

@ -14,6 +14,8 @@
postFixup = (old.postFixup or "") + ''
substituteInPlace $out/bin/goofcord \
--replace-fail 'exec -a "$0"' 'NIXOS_OZONE_WL=1 exec -a "$0"'
substituteInPlace $out/share/applications/goofcord.desktop \
--replace-fail 'StartupWMClass=GoofCord' 'StartupWMClass=goofcord'
'';
}))
lsfg-vk