def set_hidden_list(hidden_list, user=None):
 if isinstance(hidden_list, basestring):
  hidden_list = json.loads(hidden_list)
 for module_name in hidden_list:
  set_hidden(module_name, user, 1)
 for module_name in list((set(get_all_icons()) - set(hidden_list))):
  set_hidden(module_name, user, 0)
 if user:
  clear_desktop_icons_cache()
 else:
  frappe.clear_cache()

def set_hidden_list ( hidden_list , user = None ) : if isinstance ( hidden_list , basestring ) : hidden_list = json . loads ( hidden_list ) for module_name in hidden_list : set_hidden ( module_name , user , 1 ) for module_name in list ( ( set ( get_all_icons ( ) ) - set ( hidden_list ) ) ) : set_hidden ( module_name , user , 0 ) if user : clear_desktop_icons_cache ( ) else : frappe . clear_cache ( )
sets property hidden=1 in **desktop icon** for given user .