kkevinm / iTunes-Discord-RP

iTunes Rich Presence for Discord made in Java (for MacOS and Windows)
MIT License
198 stars 37 forks source link

Make the app work in the background without having to disable App Nap. #40

Open kkevinm opened 4 years ago

kkevinm commented 4 years ago

Having App Nap on will make the app not work when it's on the background, thus leaving the Discord status not up-to-date. Apparently, since more recent MacOS versions, it's not even possible to disable it for just specific applications (the "defaults write \<app domain>" method is actually ignored) so for now the only solution is to disable App Nap globally. The ideal goal would be to make the app (and underlying osascript) not be put in sleep mode when being in the background, while also keeping App Nap active.