mirror of
https://github.com/PartialVolume/shredos.x86_64.git
synced 2026-03-01 14:02:12 +00:00
14 lines
295 B
Python
14 lines
295 B
Python
#!/usr/bin/env python3
|
|
|
|
import sdbus
|
|
from sdbus_block.dbus_daemon import FreedesktopDbus
|
|
|
|
s = FreedesktopDbus(sdbus.sd_bus_open_system())
|
|
|
|
props = s.properties_get_all_dict()
|
|
|
|
print(props)
|
|
|
|
# Check for a randomly chosen interface:
|
|
assert 'org.freedesktop.DBus.Monitoring' in props['interfaces']
|