I'm making a .desktop file for Minecraft. Nothing appears to happen upon executing the it. The Exec and Path keys in the file:

Exec=java -jar Minecraft.jar

I've also tried using a ~ instead of $HOME. Freedesktop's Desktop Entry Specification doesn't mention any strict rules for the Path key, but it does for the Exec key, and I've tried applying it's rules in the Path key too.

I have found a workaround for making my .desktop file through a previous question, but I would still like to know how to make it work with the Path key.

  • 2
    As I said in my comment to your other question you have to provide absolute paths. $HOME is not expanded in a desktop file (if it's part of an argument passed to sh command then the shell will expand it). – don_crissti Dec 21 '14 at 14:45

Your Answer

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

Browse other questions tagged or ask your own question.