3 # Default script for e16 session start/restart/stop management
5 # Assuming misc.session.enable_script is set and misc.session.script
6 # points to this script it will be called with parameter
8 # - "init" first time an X-session (with e16) starts
9 # - "start" every time e16 (re)starts
10 # - "stop" when e16 exits without restarting
12 # On init, start, and stop the script will run any executable found in
13 # ~/.e16/Init/, ~/.e16/Start/, and ~/.e16/Stop/, respectively.
14 # These executables do not have to exit as they are called with '&' from here.
17 # In multi-display/screen setups the DISPLAY environment variable can be used
27 test -d "$d" || return
34 *~) # Assume this is crap - skip
36 *.sh) # Scripts are executed in foreground
39 *) # Anything else is executed in background