mirror of
https://github.com/openSUSE/snapper.git
synced 2026-02-06 09:46:06 +01:00
16 lines
300 B
Python
Executable File
16 lines
300 B
Python
Executable File
#!/usr/bin/python
|
|
|
|
import dbus
|
|
|
|
bus = dbus.SystemBus()
|
|
|
|
snapper = dbus.Interface(bus.get_object('org.opensuse.Snapper', '/org/opensuse/Snapper'),
|
|
dbus_interface='org.opensuse.Snapper')
|
|
|
|
|
|
configs = snapper.ListConfigs()
|
|
|
|
for config in configs:
|
|
print config[0], config[1]
|
|
|