I have created a shortcut to an application, ML.desktop, which runs as expected when double-clicked. I would like to run it from the terminal, but can't figure out how. I get the following error, which makes sense because the .desktop file doesn't have a shebang.
Code:
$ ./ML.desktop
./ML.desktop: line 1: [Desktop: command not found
./ML.desktop: line 16: X-DBUS-ServiceName=: command not found
./ML.desktop: line 17: X-DBUS-StartupType=none: command not found
./ML.desktop: line 18: X-DCOP-ServiceType=none: command not found
./ML.desktop: line 19: X-KDE-SubstituteUID=false: command not found
./ML.desktop: line 20: X-KDE-Username=: command not found
./ML.desktop: line 21: X-Ubuntu-Gettext-Domain=desktop_kdebase: command not found
My reason is that the .desktop file includes the 'Work path' variable, which I want to set at launch.
Alternatively,
a)how would I incorporate the workpath variable into a bash script that calls/links to the original application (on a network)?
b) how would I assign a keyboard shortcut to a .desktop file?
Don't know if it's relevant, but I have Jaunty and KDE4.2.2
Bookmarks