|
|
@ -324,11 +324,15 @@ def main():
|
|
|
|
shutil.copy(system_path['appmenu_start_hvm_template'], vm.appmenus_templates_dir)
|
|
|
|
shutil.copy(system_path['appmenu_start_hvm_template'], vm.appmenus_templates_dir)
|
|
|
|
|
|
|
|
|
|
|
|
if hasattr(vm, 'appvms'):
|
|
|
|
if hasattr(vm, 'appvms'):
|
|
|
|
|
|
|
|
os.putenv('SKIP_CACHE_REBUILD', '1')
|
|
|
|
for child_vm in vm.appvms.values():
|
|
|
|
for child_vm in vm.appvms.values():
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
child_vm.appmenus_recreate()
|
|
|
|
child_vm.appmenus_recreate()
|
|
|
|
except Exception, e:
|
|
|
|
except Exception, e:
|
|
|
|
print >> sys.stderr, "---> Failed to recreate appmenus for " \
|
|
|
|
print >> sys.stderr, "---> Failed to recreate appmenus for " \
|
|
|
|
"'{0}': {1}".format(child_vm.name, str(e))
|
|
|
|
"'{0}': {1}".format(child_vm.name, str(e))
|
|
|
|
|
|
|
|
if 'KDE_SESSION_UID' in os.environ:
|
|
|
|
|
|
|
|
subprocess.call(['kbuildsycoca4'])
|
|
|
|
|
|
|
|
os.unsetenv('SKIP_CACHE_REBUILD')
|
|
|
|
|
|
|
|
|
|
|
|
main()
|
|
|
|
main()
|
|
|
|