xou816 / spot

Native Spotify client for the GNOME desktop
MIT License
2.28k stars 119 forks source link

Suspend is not inhibited while playing #317

Open kkeijzer opened 2 years ago

kkeijzer commented 2 years ago

Describe the bug My phone is set to suspend after 120 seconds of inactivity when on battery power. I would expect a media player to inhibit this suspension, so the music keeps playing. With Spot, this is not the case.

To Reproduce Steps to reproduce the behavior:

  1. Play music with Spot;
  2. Wait until gnome-session suspends after the idle timeout;
  3. Music stops playing.

Expected behavior Suspend should be inhibited, music should keep playing. This works well with Shortwave and Lollypop for instance.

General information:

kkeijzer commented 1 year ago

Just wanted to let you know that this is still an issue with version 0.3.1.

I have added this flatpak override:

[Session Bus Policy]
org.freedesktop.ScreenSaver=talk

But it doesn't seem to help. So I wonder if Spot inhibits suspend at all?