Skip to content

Commit

Permalink
heroic: fix icon sizes
Browse files Browse the repository at this point in the history
By default, the 128x128 icon was installed as a 512x512.
The modification uses the svg icon present in the deployment to add the scalable one.

This should fix: #348764
  • Loading branch information
Steinhagen committed Oct 16, 2024
1 parent 209b7f6 commit b321d3d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkgs/games/heroic/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ stdenv.mkDerivation (finalAttrs: {
substituteInPlace "$out/share/heroic/flatpak/com.heroicgameslauncher.hgl.desktop" \
--replace-fail "Exec=heroic-run" "Exec=heroic"
mkdir -p "$out/share/applications" "$out/share/icons/hicolor/512x512/apps"
mkdir -p "$out/share/applications" "$out/share/icons/hicolor/scalable/apps"
ln -s "$out/share/heroic/flatpak/com.heroicgameslauncher.hgl.desktop" "$out/share/applications"
ln -s "$out/share/heroic/flatpak/com.heroicgameslauncher.hgl.png" "$out/share/icons/hicolor/512x512/apps"
ln -s "$out/share/heroic/src/frontend/assets/heroic-icon.svg" "$out/share/icons/hicolor/scalable/apps/com.heroicgameslauncher.hgl.svg"
runHook postInstall
'';
Expand Down

0 comments on commit b321d3d

Please sign in to comment.