Bug 475415

Summary: Quit via Systray does not work any longer
Product: [Applications] amarok Reporter: Rolf Wirth <ro.wirth>
Component: generalAssignee: Amarok Bugs <amarok-bugs-null>
Status: REPORTED ---    
Severity: normal CC: tuomas
Priority: NOR    
Version First Reported In: 2.9.71   
Target Milestone: kf5   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Rolf Wirth 2023-10-10 09:28:46 UTC
SUMMARY
***
A right-mouse-buttom an the systray icon of amarok offers "Quit" to quit amarok immediately. Klicking on it does nothing (prior version showed a window to quit amarok)
Now you need to open the main window of amarok to see the "Quit-Window".
***


STEPS TO REPRODUCE
1. Start amarok and play stream from a internet radio
2. Select quit on systray with RMB
3. 

OBSERVED RESULT
Nothing happens

EXPECTED RESULT
Quit-Window shoud appear to quit amarok

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: (openSuSe Leap 15.5 x64
(available in About System)
KDE Plasma Version: 5.27.4
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFORMATION
Comment 1 Rolf Wirth 2023-10-15 15:51:57 UTC
Can now bee more accurate: Issue happens if you start and quit amarok in different virtual desktops
Comment 2 Tuomas Nurmi 2024-03-03 11:39:39 UTC
(In reply to Rolf Wirth from comment #1)
> Can now bee more accurate: Issue happens if you start and quit amarok in
> different virtual desktops

Quit from systray seems to work for me with Amarok built from current git head, on opensuse Tumbleweed, Plasma/X11 desktop session (didn't test the internet radio playing, though, just local files). Sounds like something that could be desktop session related.
Are you using X11 or Wayland desktop session?
Comment 3 Rolf Wirth 2024-03-03 13:20:26 UTC
(In reply to Tuomas Nurmi from comment #2)

> Are you using X11 or Wayland desktop session?
I'm using Plasma/X11 with OpenSuse Leap15.5.
>...Amarok built from current git head, on opensuse Tumbleweed...
where can I get your new version?

BTW: There seems to be a Version mismatch: Package shows 2.9.75 but Amarok itself shows 2.9.71
 # rpm -qf /usr/bin/amarok                 ## Leap 15.5
amarok-2.9.75git.20221114T020258~457db492b4-bp155.1.12.x86_64
# 
But Amarok -> Help -> Diagnostics shows:
Amarok Diagnostics

General Information:
   Amarok Version: 2.9.71
   KDE Frameworks Version: 5.103.0
   Qt Version: 5.15.8
   Phonon Version: 4.11.1
   Phonon Backend: Phonon GStreamer (4.10.0, http://gstreamer.freedesktop.org)
   PulseAudio: Yes

Enabled Scripts:

Enabled Plugins:
   AudioCd Collection (1.0)
   ...
   Rhythmbox Importer (1.0)

Enabled Applets:
Comment 4 Tuomas Nurmi 2024-03-03 13:28:07 UTC
Ah, yes, seems that opensuse packages containing sources from git are version numbered with 2.9.75, although technically the version number in sources is still 2.9.71. What's more informative there is the date of the source, however, i.e. 20221114.

A Tumbleweed package from 20240221 sources is available from https://software.opensuse.org/download/package?package=amarok&project=KDE%3AUnstable%3AExtra , but I'm not sure if it is compatible with Leap 15.5.

Seems that there are some community packages available for 15.5, e.g. https://software.opensuse.org/download/package?package=amarok&project=home%3Aecsos has 20231224, which is quite recent (but I have not tested or inspected myself)
Comment 5 Rolf Wirth 2024-03-03 19:44:40 UTC
I'm sorry, I can't test.
The KDE package does not fit, an other needed package isn't available.
The  package from home:ecsos is broken.
Do I have to wait or is there an other place to download it?
Comment 6 Tuomas Nurmi 2024-03-03 19:51:06 UTC
Ok. Unless the 1-Click-install available at https://software.opensuse.org/package/amarok -> openSUSE Leap 15.5 -> Show community packages -> home:ecsos works any better, then I don't know of any other Leap 15.5 packages of recent Amarok source code.
(Building from source code yourself is a possibility, but requires some expertise and extra effort.)
Comment 7 Rolf Wirth 2024-03-04 22:00:58 UTC
(In reply to Tuomas Nurmi from comment #6)
> Ok. Unless the 1-Click-install available at
> https://software.opensuse.org/package/amarok -> openSUSE Leap 15.5 -> Show
> community packages -> home:ecsos works any better, then I don't know of any
> other Leap 15.5 packages of recent Amarok source code.
> (Building from source code yourself is a possibility, but requires some
> expertise and extra effort.)

First: the package from ...home:ecsos IS installable. It was my error to not import the belonging to key.
Second: I found the very special startup conditions where the quit does not any longer work.

I use amarok always to listen to the same radio station. Therefore I configured to start amarok immediately as minimized into systray because I do not need any changes or selection inside amarok.
I start it minimized in KDE plasma and have setup a kwinrule:

PS1: > cat amarok.kwinrule
[Application settings for amarok]
Description=Application settings for amarok
clientmachine=localhost
minimize=true
minimizerule=3
position=30,0
size=1260,1156
skiptaskbar=true
skiptaskbarrule=3
wmclass=amarok
wmclassmatch=1
PS1: > 

Under this startup condition (minimized), there is no initial window at any virtual desktop.
This seems to be the reason for no answer to "quit" from systray/amarok/RMB at every virtual DT except of the one which was active at startup of amarok.
It's not a big "error", but I noticed it immediately as it didn't work any longer as usual.
(A never reported problem isn't any! This I learned at HP company)

Building from sources I want to avoid. Fulfilling all dependencies I expect to be very complex.
I will ask "home:ecsos" to update his version to 20240221.
Comment 8 Tuomas Nurmi 2024-03-05 13:19:19 UTC
Okay, thank you for the detailed instructions. I'll see if I try reproducing the problem myself sometime with them