1
0
mirror of https://github.com/openSUSE/snapper.git synced 2026-02-07 03:47:11 +01:00
Files
snapper/examples/python/set-config.py

14 lines
305 B
Python
Raw Permalink Normal View History

2023-03-28 15:00:27 +02:00
#!/usr/bin/python3
2013-09-02 15:25:51 +02:00
import dbus
bus = dbus.SystemBus()
snapper = dbus.Interface(bus.get_object('org.opensuse.Snapper', '/org/opensuse/Snapper'),
dbus_interface='org.opensuse.Snapper')
2023-03-28 15:00:27 +02:00
2013-09-02 15:25:51 +02:00
data = { "NUMBER_CLEANUP" : "yes", "NUMBER_LIMIT" : "10" }
snapper.SetConfig("root", data)