I am using KDE Plasma on Fedora & a Spotify client called ncspot.
Ncspot integrates into the multimedia controls, play /pause etc, but does not seem to be recognized as an application that should block sleep…like Firefox playing video does.
Ncspot is installed as a flatpack.
Is there some list that this can be added to, to make this work?
Hi! Just to double check, is that application not showing up in the Power and Battery widget here?
If not, then that application might not be requesting access to inhibit sleep. The cleanest way for that to work would likely be for the application developer to implement the XDG portal for signaling that: Inhibit - XDG Desktop Portal documentation
I’m not aware of a built-in feature in Plasma to inhibit sleep without either manually choosing to do so - which is still possible from that Power and Battery widget
- or based on an application’s request, but others here might have more ideas!
1 Like
Thanks for the reply, no, it’s not showing in the widget. Will revert to the dev.
Is there some list that this can be added to, to make this work?
As mentioned above, you should contact the application developer. However, as a workaround, you can add systemd-inhibit --why="Playing music"
when starting the application. To do this, edit the app’s .desktop
file via KMenuEdit. Here’s an example for GParted:
This will block sleep mode whenever the application is running. I believe you could also create a script that monitors playback activity and temporarily prevents sleep mode. However, I haven’t explored this in depth.
1 Like