Inspect the D-Bus messages a program sends and receives
Project description
dbus-trace is a wrapper to see what D-Bus messages a program sends and receives.
Installation:
pip install dbus-trace
Usage:
dbus-trace <command>
# For example - notify-send creates a desktop notification using D-Bus
$ dbus-trace notify-send "Hello world"
* Connected to session bus (connection 0)
◀ method_call: Hello [serial = 1]
path = /org/freedesktop/DBus
interface = org.freedesktop.DBus
destination = org.freedesktop.DBus
...
◀ method_call: Notify [serial = 7]
path = /org/freedesktop/Notifications
interface = org.freedesktop.Notifications
destination = :1.44
Data (susssasa{sv}i): (
'notify-send',
0,
'',
'Hello world',
'',
[],
{'sender-pid': ('x', 31559), 'urgency': ('y', 1)},
-1,
)
▷ method_return: [serial = 88]
Flags: 1 (no_reply_expected)
destination = :1.944
reply_serial = 7
sender = :1.44
Data (u): (8,)
...
dbus-trace listens on Unix sockets for the system bus and the session bus, and passes through any data sent to these sockets to the real buses. It runs the child program with environment variables pointing it to use these proxy sockets, and of course it decodes what’s going through and prints it to the terminal.
For more background about D-Bus, see What is D-Bus?.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
dbus_trace-0.1.tar.gz
(4.4 kB
view details)
Built Distribution
File details
Details for the file dbus_trace-0.1.tar.gz
.
File metadata
- Download URL: dbus_trace-0.1.tar.gz
- Upload date:
- Size: 4.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e7e1e5cafbdb41b0d12a16a83fbb83a03a6f6eb2cf98e7e8e7615d89978fcad2 |
|
MD5 | 08c66529576513f73120e39b50a7a6bf |
|
BLAKE2b-256 | 0ddda4366f3eca23245adba69e7799600cf1d3f4c82c205cfe68f148e71fd55b |
Provenance
File details
Details for the file dbus_trace-0.1-py3-none-any.whl
.
File metadata
- Download URL: dbus_trace-0.1-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.28.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0922f057711063ccb55e14c83bee09b54a571a467db9a3281c83715d58c55996 |
|
MD5 | 73e3324a9413298bcc2b91a80b697476 |
|
BLAKE2b-256 | 250cd5c865a059fa5d0d3e2f321e2b29af4d1db8c8346606dcc221bd6198bdd3 |