Skip to main content Module linux_dbus Copy item path Source clean_mpris_service_name Parses player name from a D-Bus service name (e.g. "org.mpris.MediaPlayer2.spotify" -> "Spotify"). detect_mpris_media Detects active media information on Linux via direct Unix socket D-Bus communication. encode_dbus_call Writes a D-Bus method call message into a byte buffer. extract_mpris_string Scans a D-Bus dictionary response for string values by key name. extract_mpris_string_list Scans a D-Bus dictionary response for string array values (e.g. xesam:artist -> as). get_message_type Extracts message type from a D-Bus binary message header.
1 = MethodCall, 2 = MethodReturn, 3 = Error, 4 = Signal. get_reply_serial Extracts reply serial number from D-Bus header field 5 (REPLY_SERIAL). get_session_bus_path Locates the user’s session D-Bus Unix domain socket path. parse_name_list Extracts string list from a ListNames reply body (as). read_dbus_message Reads a single complete D-Bus message from the stream. read_dbus_reply Reads incoming D-Bus messages, skipping asynchronous signals (e.g. NameAcquired),
until receiving the matching MethodReturn (2) or Error (3) for expected_serial.