utmapp / UTM

Virtual machines for iOS and macOS
https://getutm.app
Apache License 2.0
27.14k stars 1.34k forks source link

Auto Pause VM when session will expire #6778

Closed FreGitHu closed 1 week ago

FreGitHu commented 2 weeks ago

I think the VM should become paused when the UTM session is about to expire. Here's my reason.

Today, I was installing Windows XP on my iPad when I left it for a bit. It locked, it gave me the notification that the session will expire, but I missed it and now I have to wait another 40 minutes.

This probably will be an easy feature as the notification is already displayed so you probably could also auto-pause the VM incase iOS kills it.

osy commented 1 week ago

image

We support the following cases for auto-saving. We cannot auto-save right before the OS kills the background app because the OS gives a very short time for the app to terminate and if the save takes too long, it will kill the app and corrupt the VM.