etherbest
Posts: 25
Joined: Wed Jul 25, 2012 10:39 am

emulationstation --no-exit

Fri Apr 05, 2013 4:03 pm

Hey Guys,

Quick silly question, does the above work for you?

emulationstation documentation, and if I do emulationstation --help confirms, says that this should hide the exit option in the menu but I seem to always have it there regardless.

Can anyone try?

User avatar
Aloshi
Posts: 359
Joined: Sat Jun 23, 2012 6:42 pm
Contact: Website

Re: emulationstation --no-exit

Sat Apr 06, 2013 8:15 pm

If you're using it, RetroPie doesn't actually copy a binary to /usr/bin, but instead writes a bash script. Currently, the script doesn't correctly pass arguments (proposed fix here). You can either copy that proposed fix, or just modify the /usr/bin/emulationstation script to include --no-exit yourself.

etherbest
Posts: 25
Joined: Wed Jul 25, 2012 10:39 am

Re: emulationstation --no-exit

Sun Apr 07, 2013 11:43 am

Aloshi, thanks for the reply.

I tried you suggestion and it works, one more question, what are you using to launch emulationstation directly on boot?

etherbest
Posts: 25
Joined: Wed Jul 25, 2012 10:39 am

Re: emulationstation --no-exit

Sun Apr 07, 2013 11:51 am

Sorry, just realised thats probably a question for petrockblock ;)

etherbest
Posts: 25
Joined: Wed Jul 25, 2012 10:39 am

Re: emulationstation --no-exit

Sun Apr 07, 2013 11:53 am

And actually here's the answer if anyone is interested, modify /etc/profile:


# Start Emulation Station on boot or not?
function changeBootbehaviour()
{
cmd=(dialog --backtitle "PetRockBlock.com - RetroPie Setup. Installation folder: $rootdir for user $user" --menu "Choose the desired boot behaviour." 22 76 16)
options=(1 "Original boot behaviour"
2 "Start Emulation Station at boot.")
choices=$("${cmd[@]}" "${options[@]}" 2>&1 >/dev/tty)
if [ "$choices" != "" ]; then
case $choices in
1) sed /etc/inittab -i -e "s|1:2345:respawn:/bin/login -f $user tty1 </dev/tty1 >/dev/tty1 2>&1|1:2345:respawn:/sbin/getty --noclear 38400 tty1|g"
sed /etc/profile -i -e "/emulationstation/d"
dialog --backtitle "PetRockBlock.com - RetroPie Setup. Installation folder: $rootdir for user $user" --msgbox "Enabled original boot behaviour." 22 76
;;
2) sed /etc/inittab -i -e "s|1:2345:respawn:/sbin/getty --noclear 38400 tty1|1:2345:respawn:\/bin\/login -f $user tty1 \<\/dev\/tty1 \>\/dev\/tty1 2\>\&1|g"
if [ -z $(egrep -i "emulationstation$" /etc/profile) ]
then
echo "[ -n \"\${SSH_CONNECTION}\" ] || emulationstation" >> /etc/profile
fi
dialog --backtitle "PetRockBlock.com - RetroPie Setup. Installation folder: $rootdir for user $user" --msgbox "Emulation Station is now starting on boot." 22 76
;;
esac
else
break

Return to “Gaming”