rfvgyhn / min-ed-launcher

Minimal Elite Dangerous Launcher
MIT License
252 stars 9 forks source link

Feature Request: Shutdown/Cleanup commands #50

Closed mdmallardi closed 1 year ago

mdmallardi commented 2 years ago

Just as we currently can execute processes on the startup of the launcher, I would love it if we could define processes to execute as the launcher is shut down.

My use case is to utilize both a shutdown and a startup script to keep a remote copy of my VisitedStarCache synced between the different systems I would like to play Elite with since FDev won't keep that on their servers.

Thanks for your time and consideration.

slippycheeze commented 1 year ago

I'd also find this useful. I currently use Playnite, a "game launcher", which offers the same feature to do this – but I'm stuck with powershell scripts running in-process, or doing nasty things, to make this work. Be very nice to have something in the launcher instead.

pilgerone commented 1 year ago

This would be useful to turn some stuff off at the end of a play session, like, for example, shutting down SteamVR and disabling joysticks devices so they don't interfere with Windows' sleep mode. It can also be used to sync game data, etc.

I tried a workaround to have one of the processes to monitor for a quit message and do some wrapping-up, but it appears that min-ed is quite aggressive when shutting everything down.

rfvgyhn commented 1 year ago

Added in cebed90

mdmallardi commented 1 year ago

Thanks for this! I can't wait to cut out all the steps I currently have in order to run the game!