2

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
Path=$HOME/.minecraft/

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.

1
  • 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). Dec 21, 2014 at 14:45

0

You must log in to answer this question.

Browse other questions tagged .