Change default session script to run scripts in foreground.
SVN revision: 23257
This commit is contained in:
parent
4a7a44503c
commit
0f75883d27
|
@ -28,9 +28,16 @@ RunApps() {
|
||||||
|
|
||||||
for f in "$d"/*
|
for f in "$d"/*
|
||||||
do
|
do
|
||||||
if [ -x $f ]; then
|
if [ -x "$f" ]; then
|
||||||
# echo $f
|
# echo $f
|
||||||
$f &
|
case "$f" in
|
||||||
|
*.sh) # Scripts are executed in foreground
|
||||||
|
"$f"
|
||||||
|
;;
|
||||||
|
*) # Anything else is executed in background
|
||||||
|
"$f" &
|
||||||
|
;;
|
||||||
|
esac
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue