Feh lets you configure its actions for keyboard keys and mouse buttons. See its manpage for further information, and this post in the official Raspberry Pi forum. The action to exit feh is called quit in its configuration files.
So, maybe you could configure a quit key in feh and set a very high delay time in Retropie. Just an idea after a little research, I don't have any practical experience with this.
@clyde i have a custom solution for this since im running on ODROID with SDL2 and so if im not quitting the process soon enough im getting graphical glitches with on screen borders or other weird problems:
This is my solution by now - its not perfect since it can make problems when a rom cant load (then i have to restart the system) otherwise it works flawlessly on my ODROID with retropie:
Basically i have 2 scripts runcommand-onstart.sh (mine did not exist since i installed retropie from the distro directly)
# the image i want to load
if [-f "$loader"]; then
# if image is found - start fbi with the image and no timelimit, also start the check script in same directory
fbi -1 -t 0 -noverbose -a "$loader" </dev/tty &>/dev/null &
# you have to enable retroarch logs - always log everything
timeout 15 tail -f $input | while read LOGLINE
# if any of this lines are seen - kill everything related to launchimages - in this case fbi and tail
# "Found display server" is the first command in the log before the emulator kicks in
if [[ $LOGLINE == *"Found display server"* ]]; then
if [[ $LOGLINE == *"Failed to load content"* ]]; then
if [[ $LOGLINE == *"Bus error"* ]]; then
So what this is doing:
it starts FBI forever and the check script checks the logs for "exit tokens" - if a exit token is hit every process related to the imageloading gets killed.
If the rom cant load before 15 seconds (timeout 15 - set this to the possible highest value) the process should get automatically killed.
works btw with the newest (current master in repo) mame-plus and mame emulators at my side. If you have "Enter Problems" - do what i said before - just add the clean commands for the tty additional to the pkill commands
maybe that idea/solution gives some ideas to you :)
I guess the fbi (image viewer) used to display the .png file does not support transparency ?
Ahh ok, that makes sense. It seems it defaults to a gray background. I wonder if there's a way to either have it default to a black background OR make the side bezels match the gray background i'm getting from the .png
@jwbmonk@meleu created an amazing script https://github.com/meleu/generate-launching-images that creates launching images for a specific theme.
What I think it does is take the console images of the theme and create launching images. I guess it could be possible to add an option to use the scraped box art instead of the console image.