Ubuntu 12.04 32-bit
I am trying to manually create a .desktop file to launch an application. I wish to execute the command:
java -jar ~/.osbuddy/osbuddy.jar
When I run my .desktop file. However, this does not work. I then tried:
java -jar /home/${USER}/.osbuddy/osbuddy.jar
which did not work either.
Finally,
java -jar /home/branon/.osbuddy/osbuddy.jar
worked fine. I manually executed all of the above lines through the terminal and it launched the program fine. Why won't it work in a .desktop file?
Thanks for any light you can shed. This is my first time on AskUbuntu so I apologise if I'm ignoring some customary rules of this form. If I've transgressed, please correct me.
$USER
.$USER
is valid,${USER}
is valid also. (And${parameter}
is not merely a bash-ism; see the section on "Parameter Expansion" inman dash
.)