I have made a Minecraft.desktop file in ~/.local/share/applications/ that reads as follows:
[Desktop Entry]
Name=Minecraft
Comment=Play this game in OpenJDK Java 7 Runtime
Exec=minecraft
Terminal=false
Icon=minecraft
Type=Application
Categories=Game;
and my "minecraft" script reads:
java -jar ~/Desktop/Minecraft.jar
I can enter java -jar ~/Desktop/Minecraft.jar
into the teminal and minecraft will start. I can also enter minecraft
into the terminal and the script will run and the game will start. However, the icon will not actually appear to do anything when I click it with this configuration. I tried first with the Exec line as Exec=java -jar ~/Desktop/Minecraft.jar
, but that didn't work, so I tried the script. I just don't know why nothing seems to happen when I use the launcher icon??
any thought on this issue? thanks!