mirror of
https://github.com/openSUSE/snapper.git
synced 2026-02-06 18:46:06 +01:00
12 lines
274 B
Python
Executable File
12 lines
274 B
Python
Executable File
#!/usr/bin/python3
|
|
|
|
import dbus
|
|
|
|
bus = dbus.SystemBus()
|
|
|
|
snapper = dbus.Interface(bus.get_object('org.opensuse.Snapper', '/org/opensuse/Snapper'),
|
|
dbus_interface='org.opensuse.Snapper')
|
|
|
|
|
|
snapper.SetSnapshot("root", 1, "test", "", { "id" : "123" })
|