Skip to content

Instantly share code, notes, and snippets.

@adamsdesk
Last active December 31, 2015 04:00
Show Gist options
  • Save adamsdesk/8be66b9469b88fd03765 to your computer and use it in GitHub Desktop.
Save adamsdesk/8be66b9469b88fd03765 to your computer and use it in GitHub Desktop.
How to create a Gnome menu shortcut so you can lancuh Minecraft client propperly within Linux. This was tested using Gnome v3.14 on Debian Jessie. Thanks goes to Kevin Flyn (http://www.deviantart.com/art/Minecraft-icon-364993975) for the creation of the Minecraft icon.

Installation Instructions

  1. Create a place to store the minecraft application.

$ sudo mkdir /opt/minecraft-client/ 2. Get a Minecraft application icon.

$ wget http://orig05.deviantart.net/e3a4/f/2013/101/b/8/minecraft_icon_by_kevinflyn-d61b35j.png 3. Move Minecraft client and icon.

$ sudo mv minecraft_icon_by_kevinflyn-d61b35j.png Minecraft.jar /opt/minecraft-client/ 4. Create minecraft.desktop. Copy and paste the file contents of minecraft.desktop into the nano editor after running the below command.

$ sudo nano /usr/share/applications/minecraft.desktop

Note: It is also assumed that Minecraft client has already been downloaded and that you must provide a path relative to where you are for the Minecraft.jar and the Minecraft icon.

Note: It is assumed that "$" represents a regular user within the terminal/shell of the Linux system.

Note: These instructions will make the application and the new menu shortcut avaliable to all users of the system.

[Desktop Entry]
Name=Minecraft
GenericName=mcLaunch
Comment=Launches Minecraft
Type=Application
Path=/opt/minecraft-client/
Exec=java -jar /opt/minecraft-client/Minecraft.jar -Xms 1024M
Icon=/opt/minecraft-client/minecraft_icon_by_kevinflyn-d61b35j.png
Terminal=false
Categories=Game;
Name[en_US]=Minecraft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment