What you'll need to make a minecraft launcher:
- full path to your minecraft.jar
- minecraft icon picture in *.svg format
Note: I used the one at this site: http://gimilkhor.deviantart.com/art/Minecraft-icon-193038524 . But, in order to convert the *.png icon to *.svg , I had to install Inkscape, open the *.png, then save it as *.svg (gimp won't do this). You can install inkscape with:
sudo apt-get install inkscape
Here's how to make the launcher. We'll assume minecraft is in /home/joe-user/Downloads/minecraft/minecraft.jar , and we'll assume the *.png icon file from the above website has opened with inkscape, then saved in *.svg format to ~/Pictures/minecraft.svg
Create a launcher as follows. We'll use vi because we are badass.
sudo vi /usr/share/applications/minecraft.desktop
Put the text below into the launcher, then save it (modify the Exec path to match your minecraft.jar location):
[Desktop Entry]
Name=MineCraft
Comment=ThisGameRocks
Exec=java -jar /home/joe-user/Downloads/minecraft/minecraft.jar
Icon=minecraft
Terminal=false
Type=Application
StartupNotify=true
Now, you have to copy the minecraft.svg file to /usr/share/icons/hicolor/scalable/apps/minecraft.svg (as root, change the source path to fit your situation) so the launcher can find it and use it.
sudo cp ~/Pictures/minecraft.svg /usr/share/icons/hicolor/scalable/apps/minecraft.svg
Notes:
- The minecraft.jar file should have chmod 755 minecraft.jar permissions
- The minecraft.svg file should have chmod 644 minecraft.svg permissions
- Also, the above assumes you have jre installed
sudo apt-get install openjdk-7-jre
Now, you'll be able to find minecraft in the unity searchglass. Then, once you launch it, you can right-click the icon and set "Lock to Launcher".