]>
glassweightruler.freedombox.rocks Git - waydroid.git/blob - tools/helpers/ipc.py
1 # Copyright 2022 Alessandro Astone
2 # SPDX-License-Identifier: GPL-3.0-or-later
4 # Currently implemented as FIFO
10 pipe
= BASE_DIR
+ "waydroid-" + channel
11 if not os
.path
.exists(pipe
):
13 with open(pipe
) as fifo
:
19 def notify(channel
, msg
):
20 pipe
= BASE_DIR
+ "waydroid-" + channel
22 fd
= os
.open(pipe
, os
.O_WRONLY | os
.O_NONBLOCK
)
23 with os
.fdopen(fd
, "w") as fifo
: