Skip to content

Commit e47c3d1

Browse files
committed
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.
1 parent 5bae96d commit e47c3d1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkgs/games/heroic/default.nix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ stdenv.mkDerivation (finalAttrs: {
8787
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--ozone-platform-hint=auto --enable-features=WaylandWindowDecorations --enable-wayland-ime=true}}"
8888
8989
substituteInPlace "$out/share/heroic/flatpak/com.heroicgameslauncher.hgl.desktop" \
90+
--replace-fail "StartupWMClass=Heroic" "StartupWMClass=heroic" \
9091
--replace-fail "Exec=heroic-run" "Exec=heroic"
9192
mkdir -p "$out/share/applications" "$out/share/icons/hicolor/scalable/apps"
9293
ln -s "$out/share/heroic/flatpak/com.heroicgameslauncher.hgl.desktop" "$out/share/applications"

0 commit comments

Comments
 (0)