If mpv is launched and I launch yambar, pausing/unpausing don't update mpris module.
Launching mpv when yambar is already launched works fine (see video)
If mpv is launched and I launch yambar, pausing/unpausing don't update mpris module.
Launching mpv when yambar is already launched works fine (see video)
This was actually an intentional decision. The mpris module only listens for events on the message bus (like new clients or property changes), and since clients are only advertised on startup, pre-existing clients are not recognized.
The rationale behind this was my assumption, that it is somewhat unlikely for users to start yambar after there mpris client (since yambar probably starts with there WM). But it looks like you have just proven me wrong.
I will see if I can get around to this (削除) today (削除ここまで) week, since this change isn't really straight forward, and will require quite a bit of additional logic.
I tought about that. The usecase is that I sometimes use a keybind to "toggle the bar" but there is no way to do this without killing it and relaunching it afterwards.
I know waybar can be toggled with a specific signal (something like kill -s USR1 waybar I forgot the exact cmd). Idk if it can be done with yambar.
@apheleia, I've finally gotten around to implementing client discovery on startup: https://codeberg.org/haruInDisguise/yambar/src/branch/module_mpris_client_sync_on_startup
@dnkl, I'm a bit uncertain about how to commit this feature. Should be its own PR or just another commit in #446? The commit history on this PR is already a bit of a mess, since I just rebranded it into a bugfix "collection" of all the things I messed up.
Edit: typo
it works :D
Just a heads-up: I've fixed a segfault if there are no clients on startup, and the metadata for existing clients is now processed correctly.
Since #446 has been merged, please open a new PR :)
No due date set.
No dependencies set.
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?