Skip to content

Logspam: [WARNING] System.Taffybar.WindowIcon - Failed to load icon from filepath vscode #607

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

Open
nomeata opened this issue Mar 12, 2025 · 2 comments

Comments

@nomeata
Copy link
Contributor

nomeata commented Mar 12, 2025

Taffybar works mostly fine, but it fills the log (e.g. the user journal) with messages like

[WARNING] System.Taffybar.WindowIcon - Failed to load icon from filepath vscode
[WARNING] System.Taffybar.WindowIcon - Failed to load icon from filepath @joplinapp-desktop

whenever such applications are open and I do something like switching virtual desktops.

It seems to affect those applications that ship their icon in share/pixmaps and not share/icons/….

An icon is shown, though. Maybe taffybar tries multiple ways of retrieving an icon and prints a warning if some methods fail, but later succeed?

The frequency of the messages also make we wonder if taffybar happens to be searching for and loading the icon very often, instead of just once when the program in question is started.

Version information

This is taffybar 4.0.3 installed from nixpkgs 25.05 on NixOS.

@colonelpanic8
Copy link
Member

An icon is shown, though. Maybe taffybar tries multiple ways of retrieving an icon and prints a warning if some methods fail, but later succeed?

Yes, taffybar falls back to ewmh icons when the icon specified in the desktop file does not work.

The frequency of the messages also make we wonder if taffybar happens to be searching for and loading the icon very often, instead of just once when the program in question is started.

I'd need to double check the code, but I know that it at least attempts to avoid doing this for icons where the icon occupying a particular "spot" in a workspace is the same. This is something that is a little tricky to get right though, so we do err on the side of refreshing everything.

@nomeata
Copy link
Contributor Author

nomeata commented Mar 17, 2025

I paid a bit more attention, and I get five lines

[WARNING] System.Taffybar.WindowIcon - Failed to load icon from filepath vscode
[WARNING] System.Taffybar.WindowIcon - Failed to load icon from filepath vscode
[WARNING] System.Taffybar.WindowIcon - Failed to load icon from filepath vscode
[WARNING] System.Taffybar.WindowIcon - Failed to load icon from filepath vscode
[WARNING] System.Taffybar.WindowIcon - Failed to load icon from filepath vscode

even when just changing focus between two windows. Not sure if that’s intentional.

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

No branches or pull requests

2 participants