From 0c1e45cb3d235fe11fb9266597c4d3e4fc488dab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Sat, 22 Feb 2014 01:26:01 +0100 Subject: [PATCH] appmenus: recreate child VM appmenus after template update For example refresh the icons, or commands. --- appmenus-scripts/qubes-receive-appmenus | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/appmenus-scripts/qubes-receive-appmenus b/appmenus-scripts/qubes-receive-appmenus index 5dbbd46..b9a279b 100755 --- a/appmenus-scripts/qubes-receive-appmenus +++ b/appmenus-scripts/qubes-receive-appmenus @@ -262,4 +262,12 @@ def main(): os.path.basename(system_path['appmenu_start_hvm_template']))): shutil.copy(system_path['appmenu_start_hvm_template'], vm.appmenus_templates_dir) + if hasattr(vm, 'appvms'): + for child_vm in vm.appvms.values(): + try: + child_vm.appmenus_recreate() + except Exception, e: + print >> sys.stderr, "---> Failed to recreate appmenus for " \ + "'{0}': {1}".format(child_vm.name, str(e)) + main()