Aerial icon indicating copy to clipboard operation
Aerial copied to clipboard

Reject/Suppress Notifications While Aerial Runs

Open Jimmbo opened this issue 4 years ago • 1 comments

MacMini, 10.15.4, HP 4K 27" monitor

Description of issue / Feature request

I see no way in MacOS to suppress notifications from popping up while screensaver runs. Is there any way Aerial could reject/suppress notifications while running?

Jimmbo avatar May 04 '20 20:05 Jimmbo

Hi @Jimmbo !

So I had a quick look, apparently the best way to do this would be to enable do not disturb when Aerial starts, and disable it when Aerial stops. Good news is, there seems to be an API for this : https://stackoverflow.com/questions/25210120/is-it-possible-to-turn-on-off-do-not-disturb-for-os-x-programmatically

Couple of bad news, all Catalina:

  • According to the comments, the method that supposedly work, won't work in sandboxed environments (so since in Catalina, all screensavers are sandbox, that's not good)
  • Another big issue, theoretically, we get a warning before getting killed (there's a stopAnimation method in Apple's screensaver API). In Catalina, macOS just sigkill us without warning, so even if the API worked, we very likely couldn't reenable it before exiting which would defeat the purpose.

So I have to say, at first glance, probably not doable with the current state of things. Maybe things will improve if/when Apple gives us a new screensaver API in june though.

glouel avatar May 04 '20 20:05 glouel