diff --git a/userrc.in b/userrc.in index d2a33ec..3434e8f 100644 --- a/userrc.in +++ b/userrc.in @@ -8,7 +8,7 @@ usage() { } rc_run_wait() { - su "$username" -s "$SHELL" -c "$homedir/.config/rc.local" &>"$logdir/${username}.log" & + su - "$username" -s "$SHELL" -c "$homedir/.config/rc.local" &>"$logdir/${username}.log" & wait "$!" if (( $? )); then