Refactor: Split into multiple small scripts

This commit is contained in:
Rikka committed 2023-01-19 13:14:45 +08:00
1 parent 4681bb48fe
commit df46ba8fed
14 files changed
+723 -556

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
import dbus
def DBusContainerService(object_path="/ContainerManager", intf="id.waydro.ContainerManager"):
return dbus.Interface(dbus.SystemBus().get_object("id.waydro.Container", object_path), intf)
def DBusSessionService(object_path="/SessionManager", intf="id.waydro.SessionManager"):
return dbus.Interface(dbus.SessionBus().get_object("id.waydro.Session", object_path), intf)