Use persistent systemd units for autostart

This commit is contained in:
2020-12-20 20:36:27 +01:00
parent f4fbae6683
commit 0f36baf30c
31 changed files with 194 additions and 182 deletions

View File

@@ -25,9 +25,8 @@ start_wm() {
}
autostart() {
autostart="$HOME/.autostart.sh"
log "Executing autostart file \"$autostart\""
"$autostart" >>"${LOGFILE}" 2>&1
log "Starting systemd user target \"autostart.target\""
systemctl --user start autostart.target >>"${LOGFILE}" 2>&1
}
exec >> "$LOGFILE" 2>&1