SimpleInstaBot
SimpleInstaBot copied to clipboard
App pauses when Display goes to sleep (mac)
Hi,
The app pauses when the mac display goes to sleep, but the system hasn't gone to sleep (it's disabled), only the display is off. As soon as I move the mouse and the display is on again, the app continues.
Is that the expected behavior?
I'm not 100% sure what's causing this.
The app already runs powerSaveBlocker.start('prevent-app-suspension')
https://github.com/mifi/SimpleInstaBot/blob/a40190db7a08d1a766a5270414d759fe88f49b9f/src/App.jsx#L289
Maybe we need to change it to prevent-display-sleep
.
https://www.electronjs.org/docs/api/power-save-blocker#powersaveblockerstarttype
Or maybe we need to run caffeinate
command from SimpleInstaBot.
I will release a new version with prevent-display-sleep
now. see if it helps.