Minecraft GNOME Desktop Icon

I had an email about the minecraft.desktop file in the config file in a previous post. My kids love to play Minecraft, and installation of this simple GNOME .desktop file gives them the launcher icon on their desktops.

 1cat << EOF > /usr/share/applications/minecraft.desktop
 2[Desktop Entry]
 3Version=1.0
 4Name=Minecraft
 5GenericName=Minecraft
 6Comment=Minecraft
 7Exec=java -jar /data/minecraft/Minecraft.jar
 8Icon=mcicon256
 9Terminal=false
10Type=Application
11EOF

Then of course, you must copy the nice shiny minecraft icon into /usr/share/icons/mcicon256.png. I also created a very basic puppet manifest to install it on their computers too!:

 1$ cat minecraft.pp 
 2file { ["/data/minecraft"]:
 3    ensure => "directory",
 4}
 5
 6file { "/usr/share/icons/mcicon256.png":
 7    ensure => file,
 8    owner => root,
 9    group => root,
10    mode => 644,
11    source => "puppet:///files/minecraft/mcicon256.png"
12}
13
14file { "/usr/share/applications/minecraft.desktop":
15    ensure => file,
16    owner => root,
17    group => root,
18    mode => 644,
19    source => "puppet:///files/minecraft/minecraft.desktop"
20}
21
22file { "/data/minecraft/startminecraft.sh":
23    ensure => file,
24    owner => root,
25    group => root,
26    mode => 755,
27    source => "puppet:///files/minecraft/startminecraft.sh"
28}
29
30file { "/data/minecraft/Minecraft.jar":
31    ensure => file,
32    owner => root,
33    group => root,
34    mode => 644,
35    source => "puppet:///files/minecraft/Minecraft.jar"
36}