Lots of “More Suggestions” items in the Apps Lens are represented by a default icon
Bug #1170734 reported by
Paweł Stołowski
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Unity |
Confirmed
|
High
|
Paweł Stołowski | ||
unity-lens-applications |
Confirmed
|
High
|
Paweł Stołowski | ||
unity (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Lots of “More Suggestions” items in the Apps Lens are represented by a default icon, when an icon is available that could be used. For example search for “seer”. The result “Comic Seer” is represented by a default icon, however when you open the preview an icon is shown that could be used in the results.
Changed in unity-lens-applications: | |
importance: | Undecided → High |
status: | New → Confirmed |
assignee: | nobody → Pawel Stolowski (stolowski) |
Changed in unity: | |
assignee: | nobody → Pawel Stolowski (stolowski) |
tags: | added: scopes-s |
Changed in unity (Ubuntu): | |
status: | New → Confirmed |
To post a comment you must log in.
Unfortunately there is no easy fix to this as it's not really a "bug". The icons for search results in "More Suggestions" apps are obtained from two sources: app-install/ icons - installed with app-install-data package, contains around 1100 icons, I guess only for apps that never change after release. software- center/ icons - contains icons cached by Software Center, only for apps that were browsed in SC (requires SC to be run at least once to have any icons).
- /usr/share/
- ~/.cache/
If required icon is not present in any of the above, search results default to a generic icon.
Now, the previews use different approach; as preview needs more info about application, app lens obtains application details from software- center- dbus (via a DBus call, spawned on demand) and the details include an url of the real icon (a remote http uri pointing to an ubuntu server).
Possible solutions: app-install/ icons or SC cache, and gets uris of remote icons; this of course means a lot of extra applications details data (which we don't need) over DBus. center- dbus implements a new dbus call that returns icon uris only.
1. App Lens calls GetAppDetails() for all More Suggestions results that don't have icons in /usr/share/
2. software-
Unfortunately, both 1 & 2 mean that software- center- dbus process (in python, a heavy one - approx. 413M VIRT / 137M RES memory) would be started more often or would running most of the time (currently it's started only on-demand when app preview is displayed, and disappears after a few minutes of inactivity).
3. Anything else?