Skip to main content

parse_mpris_names

Function parse_mpris_names 

Source
pub(crate) fn parse_mpris_names(text: &str) -> Vec<String>
Expand description

Parse gdbus call … org.freedesktop.DBus.ListNames output into the MPRIS player bus names. gdbus prints one GVariant tuple, e.g. ([... 'org.mpris.MediaPlayer2.vlc', 'org.freedesktop.DBus', ...],); we collect every single-quoted token with the MPRIS prefix, de-duped.