2012-06-15 16:54:02 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
2013-05-24 17:27:56 +02:00
|
|
|
## Source environment config.
|
|
|
|
[ -f ~/.xprofile ] && . ~/.xprofile
|
2013-04-27 16:35:45 +02:00
|
|
|
|
2012-06-15 16:54:02 +02:00
|
|
|
## Launch session
|
2014-08-21 10:41:47 +02:00
|
|
|
## Note: we do not 'exec' as we want to clean the session on exit.
|
2014-04-21 19:59:45 +02:00
|
|
|
if [ $# -eq 1 ] && command -v $1 >/dev/null 2>&1; then
|
2014-11-12 18:00:08 +01:00
|
|
|
$1
|
2013-10-12 16:01:11 +02:00
|
|
|
else
|
2014-11-12 18:00:08 +01:00
|
|
|
awesome
|
2013-10-12 16:01:11 +02:00
|
|
|
fi
|
2012-07-04 13:21:01 +02:00
|
|
|
|
2014-08-21 10:41:47 +02:00
|
|
|
## TODO: This is not needed since all forked processes will be killed anyway
|
|
|
|
## when 'exec' is not called. But why?
|
|
|
|
# command -v sessionclean >/dev/null 2>&1 && sessionclean
|
2014-03-04 10:25:42 +01:00
|
|
|
|