not-jan/apex-tux

No player Found

ChuckNorrison opened this issue · 3 comments

As i try several music players, the LCD shows "No player found"

18:07:24 [INFO] register hotkey ALT+SHIFT+A
18:07:24 [INFO] register hotkey ALT+SHIFT+D
18:07:24 [INFO] Registering MPRIS2 display source.
18:07:24 [INFO] Registering Coindesk display source.
18:07:24 [INFO] Registering Clock display source.
18:07:24 [INFO] Registering DBUS notification source.
18:07:24 [INFO] Found 3 registered providers
18:07:24 [INFO] Trying to connect to DBUS with player preference: Some("Telegram")
18:07:24 [INFO] Trying to connect to DBUS with player preference: Some("Telegram")
^C18:11:26 [INFO] Ctrl + C received, shutting down!
thread 'tokio-runtime-worker' panicked at 'Lost connection to D-Bus: Read/write failed', src/dbus/notifications.rs:119:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread 'tokio-runtime-worker' panicked at 'Lost connection to D-Bus: Read/write failed', /home/nice/git/apex-tux/apex-mpris2/src/player.rs:56:13
18:11:26 [INFO] unregister hotkey ALT+SHIFT+A
18:11:26 [INFO] unregister hotkey ALT+SHIFT+D

Some tips to get this up and running with Ubuntu 20.04.4 LTS?

apex-tux was started as root and Telegram was the source defined in my settings.toml

thanks for your support, other functions works great

I've done a quick test with Telegram and it appears that it doesn't start a MPRIS2 session for every file. You can check this with D-Feet. If it does however the ID appears to be tdesktop instead of Telegram.

installed d-feet and got the same list as you shown. With tdesktop in settings.toml as preferred_player i get the same result No player found.

I do not understand the dependencies to get it work.

I've checked with my local installation and it looks like Telegram does support MPRIS2 but it doesn't publish any meaningful information like artist or title to the interface :(