I have several apps that behave poorly on an iMac when it comes to macOS power management (Discord and Spotify). They are listed with Preventing Sleep set to Yes in Activity Monitor, even though they are free (not in a conversation, not playing music).
Spotify does not seem to care about this issue for several years, as all support requests and bug reports are left unanswered.
Since it is an iMac, I can't close the lid, so I just leave the computer and expect it to go to sleep after a while according to my power settings.
Is there a way to prevent these applications from changing the power management settings?