diff --git a/scripts/session.sh b/scripts/session.sh index 02059aa8..53e7d3e1 100755 --- a/scripts/session.sh +++ b/scripts/session.sh @@ -28,9 +28,16 @@ RunApps() { for f in "$d"/* do - if [ -x $f ]; then + if [ -x "$f" ]; then # echo $f - $f & + case "$f" in + *.sh) # Scripts are executed in foreground + "$f" + ;; + *) # Anything else is executed in background + "$f" & + ;; + esac fi done }