Monday, May 6, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 2403  / 2 Years ago, tue, february 22, 2022, 12:47:54

I'm new to ubuntu and linux...
I'm trying to make a minecraft launcher .desktop file, and when I execute it, it says me:
"There was an error launching the application"
My code is:



[Desktop Entry]
Name=Minecraft
GenericName=PlayMinecraft
Comment=Game
Exec="/usr/bin/java -jar ~/Desktop/Minecraft.jar"
Icon=/usr/share/icons/icon.png
Terminal=false
Type=Application


Can anybody help?
Thanks!


More From » launcher

 Answers
4

Change ~/Desktop to /home/YOURUSERNAME,



Before:
Exec=/usr/bin/java -jar ~/Desktop/Minecraft.jar



After: Exec=/usr/bin/java -jar /home/YOURUSERNAME/Desktop/Minecraft.jar


[#26931] Wednesday, February 23, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ouschee

Total Points: 485
Total Questions: 88
Total Answers: 106

Location: Central African Republic
Member since Mon, Aug 10, 2020
4 Years ago
;