Better Icon Selection
Archive Index currently selects icons purely by path. For example, it prefers icons in `/usr/share/
This specification will scope out the work required for Archive Index to intelligently select several likely targets for an app icon, extract them all, and use only the best.
Blueprint information
- Status:
- Started
- Approver:
- None
- Priority:
- Medium
- Drafter:
- Jjed
- Direction:
- Approved
- Assignee:
- Jjed
- Definition:
- Approved
- Series goal:
- Accepted for app-install
- Implementation:
- Started
- Milestone target:
- fix-599535
- Started by
- Jjed
- Completed by
Whiteboard
IconFinder should have the following behaviour:
* Try to find an icon in high quality directories in order of preference.
* If any found, extract and return the first result.
* Search for all matching icons "/usr/share".
* Run an evaluation function of each icon
-- If the icon belongs to a non-approved "*-icon-theme", it receives a 0.
-- If the extracted icon is a scalable, it receives 100. Otherwise it is rated by resolution.
-- Any icon with a high score is returned immediately. Otherwise, all icons are evaluated and the best is returned.
As extracting files from debs is performace critical, limited heuristics are acceptable.