I can't answer your question to fit with your exact code, however I can recommend a few things.
First, make sure to make the script executable by
cding to its location and running
chmod +x ./scriptname.sh. This will sort of solve your double click issue; you cannot make it executable by a double click but this way you can execute it with
Alt-F2. Just put it in your home folder and run
As for why it quits: I'm not totally sure but it seems like you have an overload of commands in there.
& all do different things, as explained here, but you may not want to do all of them and they may be conflicting somehow. I would recommend removing the last
& at the very least.
The thing is,
disown make your process ignore a
SIGHUP, which you may need to use in the event of a hang, especially given it's Chrome. In this case, just run the command without
disown, and just one
& at the end. This will keep your process as-is except your terminal window is free to do other actions, including close.
Another thing you could try is making this script open its own terminal window. This is written as follows:
gnome-terminal -e /usr/bin/chromium-browser (et cetera)
Hope this helps.