Skip to content

Commit

Permalink
multimc: create compatibility symlink to fix desktop icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Liu committed Jun 23, 2018
1 parent 28ff1f7 commit be47f95
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pkgs/games/multimc/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ in stdenv.mkDerivation rec {
cp ../application/resources/multimc/scalable/multimc.svg $out/share/pixmaps
cp ../application/package/linux/multimc.desktop $out/share/applications
wrapProgram $out/bin/MultiMC --add-flags "-d \$HOME/.multimc/" --set GAME_LIBRARY_PATH /run/opengl-driver/lib:${libpath} --prefix PATH : ${jdk}/bin/
# As of https://github.com/MultiMC/MultiMC5/blob/7ea1d68244fdae1e7672fb84199ee71e168b31ca/application/package/linux/multimc.desktop,
# the desktop icon refers to `multimc`, but the executable actually gets
# installed as `MultiMC`. Create compatibility symlink to fix the desktop
# icon.
ln -sf $out/bin/MultiMC $out/bin/multimc
'';

meta = with stdenv.lib; {
Expand Down

0 comments on commit be47f95

Please sign in to comment.