Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upApp icon selection algorithm is incorrect, results in black-and-white Ubuntu icons #1171
Comments
qubesuser
referenced this issue
in marmarek/old-qubes-core-agent-linux
Sep 6, 2015
Merged
Fix icon selection using pyxdg and support SVG icons #28
marmarek
added
bug
C: core
P: minor
labels
Sep 6, 2015
marmarek
added this to the Release 3.0 milestone
Sep 6, 2015
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 6, 2015
Member
Thanks for providing the fix.
According to our release schedule only critical fixes can be accepted now, so this will probably go as an update after final release.
|
Thanks for providing the fix. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
qubesuser
Sep 7, 2015
Sure, the impact of the issue is minimal and while the code is simple it's not a trivial fix and could cause regressions.
qubesuser
commented
Sep 7, 2015
|
Sure, the impact of the issue is minimal and while the code is simple it's not a trivial fix and could cause regressions. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
marmarek
Sep 19, 2015
Member
https://groups.google.com/d/msg/qubes-users/CR5X4CqhwbI/1clqfabRAQAJ
Additionally "/usr/share/pixmap" is missing from search path.
|
https://groups.google.com/d/msg/qubes-users/CR5X4CqhwbI/1clqfabRAQAJ |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Fixed since that pull request is merged. |
qubesuser commentedSep 6, 2015
qubes.GetImageRGBA chooses application icons in a very suboptimal way.
It first looks in /usr/share/icons/hicolor and then in /usr/share/icons and takes the PNG icon with the biggest filesize.
This is wrong: it should instead prioritize default themes like gnome and Humanity for Ubuntu and then hicolor and then the rest, it should also support SVG and XPM files and it should pick the biggest icon by the directory name (16x16, 32x32, and so on) rather than by file size.
The correct algorithm is described at http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html
Should probably use an existing implementation like this one: https://pyxdg.readthedocs.org/en/latest/_modules/xdg/IconTheme.html