Remove old autostart file

This commit is contained in:
2020-02-23 16:59:21 +01:00
parent 6f0a7e2c88
commit e56a4a7ee7

View File

@@ -1,22 +0,0 @@
#!/usr/bin/env bash
export LOGDIR="$HOME/.var/log"
export RUNDIR="$HOME/.var/run"
export LIBDIR="$HOME/.var/lib"
export BINDIR="$HOME/bin"
LOGFILE="$LOGDIR/autostart.log"
log() {
echo "[$(date +%FT%T)] $*" >> "$LOGFILE"
}
if [[ -d "$HOME/.autostart" ]] ; then
log "Looking for autostart files."
for f in "$HOME/.autostart/"*.sh ; do
if [[ -x "$f" ]] ; then
log "Executing autostart file \"$f\""
. "$f"
fi
done
fi