Skip to content

Commit

Permalink
autostart - only start autostart script for correct retropie user - f…
Browse files Browse the repository at this point in the history
…ixes #2169
  • Loading branch information
joolswills committed Oct 28, 2017
1 parent 98df1e3 commit fbd1866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scriptmodules/supplementary/autostart.sh
Expand Up @@ -28,7 +28,7 @@ function _autostart_script_autostart() {

cat >/etc/profile.d/10-retropie.sh <<_EOF_
# launch our autostart apps (if we are on the correct tty)
if [ "\`tty\`" = "/dev/tty1" ]; then
if [ "\`tty\`" = "/dev/tty1" ] && [ "\$USER" = "$user" ]; then
bash "$script"
fi
_EOF_
Expand Down

0 comments on commit fbd1866

Please sign in to comment.