Ignore default windows icons

This commit is contained in:
Daniel
2024-04-17 16:56:16 +02:00
parent f0bed8f794
commit a457ac4245
4 changed files with 56 additions and 2 deletions

View File

@@ -515,7 +515,13 @@ func (profile *Profile) updateMetadataFromSystem(ctx context.Context, md Matchin
// Get binary icon and name.
newIcon, newName, err := binmeta.GetIconAndName(ctx, profile.PresentationPath, home)
if err != nil {
switch {
case err == nil:
// Continue
case errors.Is(err, binmeta.IconIgnored):
newIcon = nil
// Continue
default:
log.Warningf("profile: failed to get binary icon/name for %s: %s", profile.PresentationPath, err)
}