Skip to content
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

fix/rfc(cache): if previously not found, still look up icon #18

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ryanabx
Copy link

@ryanabx ryanabx commented Apr 27, 2024

Fixes: pop-os/libcosmic#402

This fixes the case where an icon was previously looked up, not found, and now exists (i.e. when an application was installed)

This may not be desired behavior, it may be intended for icons that weren't found on initial cache lookup to be unreachable, hence why this is a fix/rfc.

An example in COSMIC for how the previous behavior can negatively affect applications on a taskbar:

screenshot-2024-04-27-22-16-48

The photo above shows how Visual Studio Code has a valid desktop entry and icon, but since the icon was installed shortly after the desktop entry, the icon is not accessible if we use the cache, since it looked it up and didn't find it at first.

This fixes the case where an icon was previously looked up, not found, and now exists (i.e. when an application was installed)
@ryanabx ryanabx changed the title fix/rfc: if previously not found, still look up icon fix/rfc(cache): if previously not found, still look up icon Apr 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Freedesktop icons don't refresh when a new one is added
1 participant