diff --git a/call_manager.py b/call_manager.py index 565e263..fb0108d 100644 --- a/call_manager.py +++ b/call_manager.py @@ -11,8 +11,8 @@ OP_OK = 'OK'.encode() OP_ERROR = 'ERROR'.encode() def exec_mumble(deaf: bool): - subprocess.run(['mumble', 'rpc', 'deaf' if deaf else 'undeaf']) - subprocess.run(['mumble', 'rpc', 'mute' if deaf else 'unmute']) + subprocess.run(['xvfb-run', 'mumble', 'rpc', 'deaf' if deaf else 'undeaf']) + subprocess.run(['xvfb-run', 'mumble', 'rpc', 'mute' if deaf else 'unmute']) def deaf_mumble(): exec_mumble(True) diff --git a/intercom.py b/intercom.py index a17b2f9..20d246a 100644 --- a/intercom.py +++ b/intercom.py @@ -5,6 +5,7 @@ from threading import Thread import socket import yaml import time +import subprocess from call_manager import CallManager, NO_CALL, INCOMING_CALL, OUTGOING_CALL, OP_CALL, OP_HANG, OP_PING, OP_OK, OP_ERROR @@ -73,6 +74,8 @@ def check_status(station): s.close() time.sleep(CHECK_STATUS_INTERVAL) +# Start mumble client +subprocess.run(['xvfb-run', 'mumble', 'mumble://uli@miki']) # Start thread to wait for incoming hang petitions. thread_listen = Thread(target=listen, args=(callManager,))