nix-config/overlays/srb2.nix
Donovan Glover 319dc3480c
overlays(srb2): add startupWMClass to desktop item
Fixes an issue with the application showing up as a question mark after
being launched in ironbar.
2024-03-16 14:24:56 -04:00

21 lines
513 B
Nix

{
nixpkgs.overlays = [
(final: prev: {
srb2 = prev.srb2.overrideAttrs (oldAttrs: {
desktopItems = [
(prev.makeDesktopItem rec {
name = "Sonic Robo Blast 2";
exec = oldAttrs.pname;
icon = oldAttrs.pname;
comment = oldAttrs.meta.description;
desktopName = name;
genericName = name;
startupWMClass = ".srb2-wrapped";
categories = [ "Game" ];
})
];
});
})
];
}