Can't Make Desktop Icon for Minecraft

I have been trying to make a Minecraft launcher icon on my Linux desktop and I have had no success. I have tried using a text editor and pasted this text:

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=False
Exec=java-jar "/root/.minecraft/launcher.jar"
Name=Minecraft Launcher 
Comment=Minecraft
Icon=/root/.minecraft/icons/icon.jpg
7

1 Answer

change this:

#!/usr/bin/env xdg-open

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=java -jar ~/.minecraft/launcher.jar
Name=Minecraft
Comment=Minecraft
Icon=~/.minecraft/icons/icon.jpg

to this: (using the proper username)

[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Exec=java -jar "/home/jamesestes/.minecraft/launcher.jar"
Name=Minecraft
Comment=Minecraft
Icon=/home/jamesestes/.minecraft/icons/icon.jpg

And the .desktop file should go into ~/.local/share/applications.

8

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Alexander Ross

Alexander Ross

Gaming, Esports & Interactive Media Writer

Alexander Ross has covered the video game industry for a decade, writing deep dives on game design, esports tournaments, VR developments, and gaming culture.

Share this article
Twitter Facebook Pinterest