Change default session script to run scripts in foreground.

SVN revision: 23257
This commit is contained in:
Kim Woelders 2006-06-07 22:02:40 +00:00
parent 4a7a44503c
commit 0f75883d27
1 changed files with 9 additions and 2 deletions

View File

@ -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
}