Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Linux][Flatpak] OS Media Controls not working #1627

Open
1 of 2 tasks
jojommeke opened this issue Jun 13, 2024 · 8 comments
Open
1 of 2 tasks

[Linux][Flatpak] OS Media Controls not working #1627

jojommeke opened this issue Jun 13, 2024 · 8 comments
Labels
bug Something isn't working Linux Linux related issue

Comments

@jojommeke
Copy link

jojommeke commented Jun 13, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

if i open spotube 3.7.1 the icon tray works now, big thanks btw but archlinux + kde (steamos) doesn't detect the media, i can't use my play/pause or skip key, just my system doesn't detect it as media, i am using flatpak version

Expected Behavior

media shows up in tray, is detected by the system and media control keys work

Steps to reproduce

  1. opened the app
  2. play music
  3. no media control

Operating System

          .,,,,.                  deck@steamdeck          .,'onNMMMMMNNnn',.            --------------       .'oNMANKMMMMMMMMMMMNNn'.         OS: SteamOS Holo x86_64     .'ANMMMMMMMXKNNWWWPFFWNNMNn.       Host: Jupiter 1    ;NNMMMMMMMMMMNWW'' ,.., 'WMMM,      Kernel: 6.1.52-valve16-1-neptune-61   ;NMMMMV+##+VNWWW' .+;'':+, 'WMW,     Uptime: 1 day, 6 hours, 16 mins  ,VNNWP+######+WW,  +:    :+, +MMM,    Packages: 1094 (pacman), 42 (flatpak)  '+#############,   +.    ,+' +NMMM    Shell: bash 5.1.16    '*#########*'     '*,,*' .+NMMMM.   Resolution: 1280x800, 1920x1080       `'*###*'          ,.,;###+WNM,   DE: Plasma 5.27.5           .,;;,      .;##########+W    WM: KWin  ,',.         ';  ,+##############'    WM Theme: Sweet-Dark   '###+. :,. .,; ,###############'     Theme: [Plasma], Space-dark [GTK2/3]    '####.. `'' .,###############'      Icons: breeze-dark [Plasma], breeze-dark [GTK2/3]      '#####+++################'        Terminal: konsole        '*##################*'          CPU: AMD Custom APU 0405 (8) @ 2.800GHz           ''*##########*''             GPU: AMD ATI AMD Custom GPU 0405                ''''''                  Memory: 10093MiB / 14814MiB 

Spotube version

3.7.1

Installation source

Flathub (Flatpak)

Additional information

No response

Self grab

  • I'm ready to work on this issue! (i would really like to help but im not familiar with dart )
@bayang
Copy link

bayang commented Jun 24, 2024

same here on manjaro with spotube flatpak 3.7.1.
It seems that MPRIS is broken or not working.

So media keys do not work, neither do external devices (bluetooth, usb , headsets etc...)

For example I often use playerctl to see what devices are up, but with spotube 3.7.1 I get this :

> playerctl -l
No players found

@forteller
Copy link

Same issue in Nobara (based on Fedora).

Thanks for a great app!

@diegopvlk
Copy link

Seems to work if you change the session bus
org.mpris.MediaPlayer2.Spotube.* to org.mpris.MediaPlayer2.com.krtirtho.Spotube.*
(use flatseal or something similar)

@forteller
Copy link

Thanks for the workaround! It works! Hope this can be implemented in the app :)

@KRTirtho
Copy link
Owner

KRTirtho commented Jul 9, 2024

@diegopvlk when you're free can you update this permission in the flathub/com.github.KRTirtho.Spotube repo please?

@arnavpadwal
Copy link

Fixed the same issue on arch (kde), thanks @diegopvlk for workaround!
image

@C-512L
Copy link

C-512L commented Jul 9, 2024

@diegopvlk when you're free can you update this permission in the flathub/com.github.KRTirtho.Spotube repo please?

Is this a good resolution? According to the MPRIS spec and D-BUS spec names should only contain ASCII characters '[A-Z][a-z][0-9]_-' and in case of MPRIS dots should only be used for handling multiple instances (which Spotube doesn't do). The examples shown don't use reverse dns names either because of that so I think this could be a spec violation and/or undefined behavior.

@KRTirtho
Copy link
Owner

KRTirtho commented Jul 9, 2024

@C-512L that makes sense. I realized that the underlying plugin didn't require a separate specification for Linux instead it continued using android's notification channel name. Changing that com.krtirtho.Spotube to just spotube fixed the issue.

@KRTirtho KRTirtho changed the title Arch linux with kde, media player not working, play/pause key not working, no media detection at all [Linux][Flatpak] OS Media Controls not working Jul 9, 2024
@KRTirtho KRTirtho added the Linux Linux related issue label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Linux Linux related issue
Projects
Status: Done
Development

No branches or pull requests

7 participants