My Minecraft Launchers

I’ve got two custom launchers for Minecraft on Linux. One is a wrapper script written for zsh and the other is a *.desktop file so I can conveniently launch it from my desktop.

First the script ~/local/bin/minecraft:

#!/usr/bin/zsh
function minecraft () {
case $1 {
“”) java -jar $HOME/minecraft/MagicLauncher_1.3.1.jar;;
“-def”) java -jar $HOME/minecraft/Minecraft.jar;;
“-tech”) java -jar $HOME/minecraft/TechnicLauncher.jar;;
}
}

Next is the contents of ~/.local/share/applications/minecraft.desktop:

[Desktop Entry]
Version=1.0
Name=Minecraft (magic launcher)
# Only KDE 4 seems to use GenericName, so we reuse the KDE strings.
GenericName=Minecraft
# Gnome and KDE 3 uses Comment.
Comment=Block adventure game
Exec=java -jar $HOME/minecraft/MagicLauncher_1.3.1.jar
Terminal=false
Icon=minecraft
Type=Application
Categories=Game;

Note that I keep an Icon for this game in ~/.local/share/icons/hicolor/256×256/apps/minecraft.png

By Ryan McCoskrie

Founder of the Hurunui Tech Club Creator of Vicinitude President of the Leithfield Public Library

Leave a comment