| Summary: | Haruna always reports volume 0 via MPRIS, breaks media keys and widgets | ||
|---|---|---|---|
| Product: | [Applications] Haruna | Reporter: | pallaswept <pallaswept> |
| Component: | generic | Assignee: | george fb <georgefb899> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 1.3.0 | ||
| Target Milestone: | --- | ||
| Platform: | Other | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/multimedia/haruna/-/commit/645fe07b96ae56b471130de4fa5d849210cb58f2 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
|
Description
pallaswept
2025-01-19 03:20:42 UTC
I believe that this is occurring because Haruna always reports the volume via MPRIS, as 0, if it is less than 1.
The widget gets the current volume, and it tries to set the volume relative to that. Because haruna says its volume is 0, the volume control only sets it to 5%
If I manually set the volume to 1 via MPRIS, it does work, and I can see the property's value change to 1.
If I then scroll down on the widget, it will attempt to set 95, and succeed, but report that it has set 0:
method call time=1737297065.746882 sender=:1.21 -> destination=org.mpris.MediaPlayer2.haruna serial=1537 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=Set
string "org.mpris.MediaPlayer2.Player"
string "Volume"
variant double 0.95
signal time=1737297065.747893 sender=:1.147 -> destination=(null destination) serial=177 path=/org/mpris/MediaPlayer2; interface=org.freedesktop.DBus.Properties; member=PropertiesChanged
string "org.mpris.MediaPlayer2.Player"
array [
dict entry(
string "Volume"
variant double 0
)
]
array [
]
If I change volume in the app, I see a propertychanged notification, but the value is always 0 except for at 100% when it is 1
Getting the value always reads 0 except 1 at 100% volume
Hope this helps.
Git commit 645fe07b96ae56b471130de4fa5d849210cb58f2 by George Florea Bănuș. Committed on 19/01/2025 at 17:29. Pushed by georgefb into branch 'master'. mpris2: fix setting volume M +1 -1 src/mpris2/mediaplayer2player.cpp https://invent.kde.org/multimedia/haruna/-/commit/645fe07b96ae56b471130de4fa5d849210cb58f2 Thanks mate! |