Enlightenment CVS committal

Author  : kwo
Project : e16
Module  : e

Dir     : e16/e/scripts


Modified Files:
        session.sh 


Log Message:
Change default session script to run scripts in foreground.

===================================================================
RCS file: /cvs/e/e16/e/scripts/session.sh,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- session.sh  9 Nov 2005 20:36:35 -0000       1.1
+++ session.sh  7 Jun 2006 22:02:40 -0000       1.2
@@ -28,9 +28,16 @@
 
        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
 }




_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to