Update autostart

This commit is contained in:
2018-08-16 07:25:01 +02:00
parent d51aa282db
commit 02f81ca150
12 changed files with 35 additions and 29 deletions

View File

@@ -22,16 +22,20 @@ start_wm() {
}
autostart() {
if [[ -d "$HOME/.autostart" ]] ; then
if [ -d "$HOME/.autostart" ] ; then
log "Looking for autostart files."
for f in "$HOME/.autostart/"*.sh ; do
if [[ -x "$f" ]] ; then
if [ -x "$f" ] ; then
log "Executing autostart file \"$f\""
. "$f"
"$f" >>"${LOGFILE}" 2>&1
fi
done
fi
}
exec >> "$LOGFILE" 2>&1
set -x
log "the"
autostart
log "fuck"
start_wm