You have a couple of options.
You could either run from the graphical "Run Command" - the equivalent of Windows + R. You can also find this in the start menu on Windows.
On Ubuntu, you use Alt + F2 to open this:
And on lubuntu it is "Menu" -> "Run".
And then run the command
xulrunner /home/clain/myapp/application.ini
graphically, without a terminal being needed.
Your second option is to run in a terminal, but unlink it from the terminal with the &
character, like so:
xulrunner /home/clain/myapp/application.ini &
this will start it as a separate process. Here is an example with Gedit:
As you can see, I can run another command without affecting Gedit. It will keep running. If I was to not use the &
the terminal would be attached. Closing the terminal gives this message:
And of course if I do close it Gedit will stop. If I use the &
, there is
no active process so the terminal can just be closed.
Finally, if you do really need a desktop shortcut, you could use this .desktop
file.
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=MyApp
Exec=xulrunner /home/tim/xulrunner/application.ini
Terminal=false
Type=Application
I've cut out the unnececary parts which, so this may work. Add in the line Icon = /path/to/iconname.svg
to give it an icon.
Also note that you can simply put an icon is ~/.icons
or /usr/share/icons
. Then if your icon name is "MyApp.svg" just use the line Icon = MyApp
.
If you still want the "TryExec" line, which isn't needed, A.B.'s answer explains why you do.
Best Answer
Try following text in your .desktop file.