Use persistent systemd units for autostart
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user