mirror of
https://github.com/waydroid/waydroid.git
synced 2026-06-11 01:45:01 -04:00
Drop our terrible home-made socket-based IPC. In its place, use DBus signals for communicating progress updates. Also greatly simplify the remote-init multiprocessing/multithreading.
13 lines
511 B
Python
13 lines
511 B
Python
# Copyright 2022 Alessandro Astone
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
# Currently implemented as FIFO
|
|
import os
|
|
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)
|