8000 Unable to find some players (like Firefox) · Issue #132 · ErikReider/SwayOSD · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Unable to find some players (like Firefox) #132
Open
@ArijanJ

Description

@ArijanJ

Hello, it seems that if I pass --player="firefox.instance_1_316" (which is received from playerctl -l | head -1 ), I get the following error:

Unable to get players! are any opened?

I wasn't able to fully figure out why this is happening, but "spotify" seems to work correctly. Therefore, it may be because we are using the "Identity" of the MPRIS player, which may match up for Spotify but not these weirder names.

The site is currently down, but here is an archived version of the freedesktop spec for the "Identity" field: https://web.archive.org/web/20241114075057/https://specifications.freedesktop.org/mpris-spec/latest/Media_Player.html#Property:Identity

The player should also likely have a regular name that would return firefox.instance_1_316, so we may need to iterate through them to find it, but I'm not sure if this is a fault of the MPRIS library you're using.
From what I can se, the broken code seems to be a call to playerfinder.find_by_name in mpris-backend/mod.rs, as it returns such a player not existing.

⋊> ~/S/t/debug on main ⨯ playerctl -l
firefox.instance_1_316
spotify

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0