New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS Apps launched from attract mode, when quit Attract loses focus #537

Open
RetroMacGamer opened this Issue Jan 17, 2019 · 8 comments

Comments

Projects
None yet
4 participants
@RetroMacGamer
Copy link

RetroMacGamer commented Jan 17, 2019

Zen Pinball, Steam and many other Mac App's launch fine from Attract Mode, Exit Hotkey from Attract doesn't quit the app, when manually closing the app macOS returns to the desktop and not Attract Mode, basically Attract Mode Loses Focus.

ResFix Plugin set but does not help

All the specific technical details are in this forum post, emulator cfg files and console logs http://forum.attractmode.org/index.php?topic=2467.msg16834#msg16834

Here is another example of the Steam Emulator launching straight to the app rather than via .sh file.

However Kodi launches fine and exits strait back to Attract Mode on quitting but 99% of apps when quitting cause attract to lose focus.

`# Generated by Attract-Mode v2.4.1

executable /Applications/Kodi.app/Contents/MacOS/Kodi
args "[romfilename]"
rompath /Applications
romext .app
system Kodi
artwork flyer ~/.attract/Attract Mode Setup/flyer
artwork marquee
artwork snap ~/.attract/Attract Mode Setup/snap
artwork wheel ~/.attract/Attract Mode Setup/wheel
`

`# Generated by Attract-Mode v2.4.1

executable /Applications/Steam.app/Contents/MacOS/steam_osx
args "[romfilename]"
rompath /Volumes/Roms/pcgames
romext .sh
system Steam
nb_mode_wait 1
exit_hotkey Q
artwork boxart /Volumes/Roms/steam/boxart
artwork cartart /Volumes/Roms/steam/cartart
artwork flyer /Volumes/Roms/steam/flyer
artwork snap /Volumes/Roms/steam/snap
artwork wheel /Volumes/Roms/steam/wheel
`
Currently on Attract 2.4.1 but same issues on 2.50

It would be much appreciated to see a fix, happy to provide any help and testing

@oomek

This comment has been minimized.

Copy link
Collaborator

oomek commented Jan 17, 2019

I see you have non blocking wait set to 1. Have you tried setting different values?

@RetroMacGamer

This comment has been minimized.

Copy link
Author

RetroMacGamer commented Jan 18, 2019

Thanks for your reply oomek, I have tried 5,10,15,20 & 50, Zen Pinball does launch and exit very quickly, just Attract Mode doesn't return back to focus and stays minimised in the dock.

Any other solutions?

Thanks

@oomek

This comment has been minimized.

Copy link
Collaborator

oomek commented Jan 18, 2019

Would you please test my experimental build and tell if it has any effect on the issue you have described?

https://1drv.ms/u/s!Ag7uFeM0f_fzhYI-RuXIJbha7ar6lQ

@RetroMacGamer

This comment has been minimized.

Copy link
Author

RetroMacGamer commented Jan 18, 2019

oomek, the version in your link is for Windows and not macOS, can you send the macOS version please?

@estefan3112

This comment has been minimized.

Copy link

estefan3112 commented Jan 19, 2019

I could do a MacOS Mojave compile if I know which source code base I should use.

@oomek

This comment has been minimized.

Copy link
Collaborator

oomek commented Jan 19, 2019

Sorry, my bad, my fix is only Windows related.

@keilmillerjr

This comment has been minimized.

Copy link
Contributor

keilmillerjr commented Jan 19, 2019

Have you tried removing non blocking wait all together?

@RetroMacGamer

This comment has been minimized.

Copy link
Author

RetroMacGamer commented Jan 19, 2019

keilmillerjr yes I have, Zen Pinball 2 loads but in the background and Attract Mode stays at Front so Non-Blocking Mode Wait is def required I think. I guess this problem as we have discussed in the forum is that Attract Mode may not actually realise or know that Zen Pinball 2 has closed therefore staying in the dock minimised with lost focus

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment