title: Linux shell script not executing completely as desktop shortcut
body: <p>I'm looking to create a shell script to open a set of applications whenever I start my workday.  I found a couple posts <a href="https://stackoverflow.com/questions/3004811/how-do-you-run-multiple-programs-from-a-bash-script">like this</a> which seem to be what I'm looking for.  The problem is, the script doesn't work when I double-click on it.</p>
  
  <p>If I start the script from Terminal, it executes completely, but I don't want to always have to call this from Terminal, I want to double-click a shortcut.  If I add a "sleep 1" to the end, it works most the time, but the problem here is 1 second is not always enough time to execute everything.  Also, it just feels very imprecise.  Sure, I could say "sleep 10" and be done with it, but, as a developer, this feels like a hack solution.</p>
  
  <p>Here is my current script, I intend to add my applications to this list over time, but this will be sufficient for now:</p>
  
  <pre><code>#!/bin/bash
  skype &amp;
  /opt/google/chrome/google-chrome &amp;
  geany &amp;
  mysql-workbench &amp;
  </code></pre>
  
  <p>So the question is: how can I ensure everything starts but not leave the temporary terminal window open longer than it needs to be?</p>
  
  <p>In case it matters, to create this script I simply saved a .sh file to the desktop and checked "Allow executing file as program" in the file properties.</p>