New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

App icon selection algorithm is incorrect, results in black-and-white Ubuntu icons #1171

Closed
qubesuser opened this Issue Sep 6, 2015 · 4 comments

Comments

Projects
None yet
2 participants
@qubesuser

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

@qubesuser 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 marmarek added this to the Release 3.0 milestone Sep 6, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

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.

Member

marmarek commented Sep 6, 2015

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.

@qubesuser

This comment has been minimized.

Show comment
Hide comment
@qubesuser

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.

Sure, the impact of the issue is minimal and while the code is simple it's not a trivial fix and could cause regressions.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Sep 19, 2015

Member

https://groups.google.com/d/msg/qubes-users/CR5X4CqhwbI/1clqfabRAQAJ
Additionally "/usr/share/pixmap" is missing from search path.

Member

marmarek commented Sep 19, 2015

https://groups.google.com/d/msg/qubes-users/CR5X4CqhwbI/1clqfabRAQAJ
Additionally "/usr/share/pixmap" is missing from search path.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Oct 1, 2015

Member

Fixed since that pull request is merged.

Member

marmarek commented Oct 1, 2015

Fixed since that pull request is merged.

@marmarek marmarek closed this Oct 1, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment