From e47c3d1a025fd2a2d565e2843ae4dde62fdd12cf Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sun, 15 Dec 2024 23:01:04 +0000 Subject: [PATCH] heroic: patch Desktop Entry `StartupWMClass` Heroic usually has a WM Class of "Heroic", however for some reason the nixpkgs version has a WM Class of "heroic". This subtle discrepancy results in the app's window not being associated with its desktop entry, so it cannot be pinned, does not have an icon, etc. --- pkgs/games/heroic/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/games/heroic/default.nix b/pkgs/games/heroic/default.nix index 9f47e84a034c2..d3a51d82cb6c2 100644 --- a/pkgs/games/heroic/default.nix +++ b/pkgs/games/heroic/default.nix @@ -87,6 +87,7 @@ stdenv.mkDerivation (finalAttrs: { --add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}" substituteInPlace "$out/share/heroic/flatpak/com.heroicgameslauncher.hgl.desktop" \ + --replace-fail "StartupWMClass=Heroic" "StartupWMClass=heroic" \ --replace-fail "Exec=heroic-run" "Exec=heroic" mkdir -p "$out/share/applications" "$out/share/icons/hicolor/scalable/apps" ln -s "$out/share/heroic/flatpak/com.heroicgameslauncher.hgl.desktop" "$out/share/applications"