Ubuntu – How to create a .desktop unity launcher that starts an executable in a specific working directory

launcher

Well the whole question is in the title. Say I have the following launcher

#!/usr/bin/env xdg-open
[Desktop Entry]
Version=1.0
Type=Application
Terminal=false
Name=Lantern
Comment=Lantern interface to ICC
Exec=/usr/bin/java -jar /home/john/local/lantern-chess/lantern.jar
Icon=/

how do I make it run in the /home/john/local/lantern-chess/ folder?

Best Answer

Add a line

Path=/home/john/local/lantern-chess/
Related Question