I have created a bash script that starts an application. Since I wanted the terminal window to close when the application is started, I used this line:
firefox & 2> /dev/null; exit;
It works fine as long as I start the script from the command line. However, if I start it from a desktop laucher the application closes as well as the terminal. Can anyone explain why this is. Im using Ubuntu 10.10.
By only using:
it works. But I still would like an explanation to why the original version doesn't work when started from a desktop launcher, if possible.