From 0454524d93d000e20f0b6fd6578dd3d519fff730 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 23 Jan 2014 16:41:01 +0100 Subject: [PATCH] Update audio-input availability after VM startup The pulseaudio agent register itself when it connects to the VM, so after VM reports "Running" state. --- qubesmanager/main.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/qubesmanager/main.py b/qubesmanager/main.py index 8626206..b8b2ee5 100755 --- a/qubesmanager/main.py +++ b/qubesmanager/main.py @@ -1128,7 +1128,11 @@ class VmManagerWindow(Ui_VmManagerWindow, QMainWindow): self.vm_rec.pop(vm.name) self.running_vms_count -= 1 some_vms_have_changed_power_state = True - + else: + # pulseaudio agent register itself some time after VM + # startup + if state == "Running" and not vm.qubes_manager_state[QMVmState.AudioRecAvailable]: + self.update_audio_rec_info(vm) if self.screen_changed == True: reload_table = True