Files
waydroid/tools/helpers/ipc.py
Alessandro Astone bd5adeade3 init: Use DBus for reporting progress
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.
2025-11-11 00:20:44 +01:00

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)