+ if 'icons_src' not in thisinfo:
+ thisinfo['icons_src'] = {}
+ # Keep path to non-dpi icon in case we need it
+ match = re.match(icon_pat_nodpi, line)
+ if match:
+ thisinfo['icons_src']['-1'] = match.group(1)
+ elif line.startswith("launchable-activity:"):
+ if 'icons_src' not in thisinfo:
+ thisinfo['icons_src'] = {}
+ # Only use launchable-activity as fallback to application
+ elif '-1' not in thisinfo['icons_src']:
+ match = re.match(icon_pat_nodpi, line)
+ if match:
+ thisinfo['icons_src']['-1'] = match.group(1)