yet-another-spotify-tray icon indicating copy to clipboard operation
yet-another-spotify-tray copied to clipboard

Right clicking and quitting doesn't quit Spotify

Open 103sbavert opened this issue 2 years ago • 6 comments

Just as it sounds. Right clicking on the tray icon on KDE Plasma (using the KDE Systray) doesn't actually kill spotify, spotify-tray. Music continues to play as the process spotify is still running.

103sbavert avatar Dec 20 '22 15:12 103sbavert

Upon closely examining the app's code, it seems somewhere in the code you're forking the process or making a new thread but that thread is never exiting when the main function returns.

103sbavert avatar Dec 20 '22 17:12 103sbavert

Okay I did more testing and it seems the SpotifyTray app does close properly, however the spotify process gets detached from the window instead of getting killed.

103sbavert avatar Dec 20 '22 18:12 103sbavert

I have tested this. If you just start spotify-tray and let it launch spotify everything is correct. The behavior you are describing is if we try to hijack a running Spotify window. Please do not do this. Simply start spotify-tray

macdems avatar Dec 20 '22 18:12 macdems

That's not true. At least, in my case it isn't. I closed all instances of spotify, then I started spotify-tray and started playing a song. Then I right clicked on the spotify icon in the system tray and chose Quit Spotify. It did not stop playing the music although the spotify-tray process was killed.

103sbavert avatar Dec 20 '22 19:12 103sbavert

Something weird I noticed is if you run the program from the terminal and then follow all the steps above and then instead of closing from the system tray, you just press Ctrl+C in Terminal, it does properly stop spotify and the music.

103sbavert avatar Dec 20 '22 19:12 103sbavert

I am sorry, but I cannot reproduce behavior you are describing. Everything closes correctly on my computer.

macdems avatar Dec 24 '22 08:12 macdems