spot icon indicating copy to clipboard operation
spot copied to clipboard

Provide a reason to gnome for running in background

Open aurabindo opened this issue 4 years ago • 5 comments

Describe the bug Gnome 40 complains that Spot is running in the background but it doesnt know the reason why it needs to run in the background

To Reproduce Steps to reproduce the behavior:

  1. Install Spot via Flatpak
  2. Close the application while playing audio
  3. See error

Expected behavior No banners from Gnome. Play graciously in the background

Screenshots spot_background_reason

General information:

  • Distribution: Pop OS 21.20
  • Installation method Flathub
  • Version : 0.2.2
  • Device used [e. g. desktop, phone...]: Desktop

aurabindo avatar Jan 03 '22 04:01 aurabindo

Can't replicate :\

Not surprised that's happening though - what you're supposed to do is call the org.freedesktop.portal.Background portal to ask for the permission to run in background.

jannuary avatar Jan 05 '22 04:01 jannuary

Hi, thanks for the report!

I think you have to clear the granted permissions to reproduce this.

But you're right absolutely, I think there's an issue for that actually.

It's definitely not a major issue (in my opinion of course) as the fact that music is playing when you get this warning makes the purpose of running in the background obvious.

xou816 avatar Jan 05 '22 05:01 xou816

I think there's an issue for that actually.

There was https://github.com/xou816/spot/issues/132, but it was closed when the behavior was changed so that Spot only runs in the background if music is playing.

I think you have to clear the granted permissions to reproduce this.

On Ubuntu, this permission can be changed in Settings > Applications > Spot > Integration > Run in background. However, turning it off didn't work for me on Ubuntu 20.04.3. No popup appeared and Spot continued to play music in the background. That's weird. I guess further research is needed.

ondras12345 avatar Jan 05 '22 13:01 ondras12345

This is not an error. Just as GNOME is designed to be used without a tray, that is, without background/minimized applications, it warns that there is an application in the background. This SHOULD show up once the first time you close after you choose one of these options. Also, you can go to the settings on the apps tab and check/uncheck the option to run in the background.

CleoMenezesJr avatar Jan 12 '22 01:01 CleoMenezesJr

@CleoMenezesJr Hi just curious, is this a GNOME/Flatpak thing? Because this seems like terrible UX. A new Linux user could see this pop-up and freak out. Imagine a grandpa with Spot seeing this popup. Lol. Do you think there's an issue open on Flatpak for getting rid of this popup?

aviwad avatar Mar 23 '22 07:03 aviwad