-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
[BUG] Sway Taskbar icons missing for some programs #259
Comments
Okay, strange. When I search for firefox it shows: For telegram (which also works for me): But when I search for thunderbird no icon shows up, I have to explicitly search for So it definitely exists and is installed but it doesn't seem to get associated with the Thunderbird process or window correctly. |
I'm pretty sure it's an issue on you side. Try installing and setting some good icon theme, e.g. Papirus or Tela. |
I’m not sure why I would need an additional icon theme. The program icons are included with the program when you install the package via the package manager. As I mentioned the Thunderbird icons are definitely installed and are at the right location. nwg-icon-picker even shows them when I enter the exact file name. I just tried installing xfce4-appfinder and there the icons are all shown correctly, which leads me to believe that it has to be a problem with nwg-panel. |
To find out if the icon theme the is the culprit. Of course you don't have to, but the panel has hundreds of users that have no such issue. |
I just installed papirus-icon-theme, and now Thunderbird shows an Icon, but I’m pretty sure that's because papirus-icon-theme installs thunderbird.svg AND org.mozilla.Thunderbird.svg. The correct naming scheme and icon as specified in the .desktop file is org.mozilla.Thunderbird though, so I’d expect nwg-panel to look for and use that. Signal still doesn’t work. |
The problem seems to be the same as #64, but the proposed fix apparently doesn't work for me. Looking at the code I suspect because org.mozilla.Thunderbird has a capital T and the app_id is with a lower t. So it never matches and doesn't load the icon. For Signal it doesn't work as there is no way to match signal-desktop to signal with the current code. So as I mentioned in the beginning we should also parse the |
It seems I know what goes wrong. Will try to fix it. |
OK. I can search all |
I think the fix in 9bd89f1 could select the wrong icon for desktop files that use a language-specific icon, for example:
|
Why? The line will be split on "=" anyway. Actually I don't care much. We will never address all possible misbehavior. And parsing .desktop files is just a fallback. |
Your code will not use the language-specific icon. It will, instead, use the first icon that was found. |
It's a minor issue. I haven't yet seen a .desktop file with lang-specific icons in real life. |
Describe the bug
The Sway Taskbar module does not show the appropriate icon for some programs, just a generic placeholder.
To Reproduce
Expected behavior
The program icon should be displayed in the taskbar instead of a placeholder, just like for any other program.
Desktop:
Additional context
Here is the output of
swaymsg -t get_tree
for the two examples where the icon is not shown:The .desktop files for those programs on Arch are:
Icon=org.mozilla.Thunderbird
Icon=signal-desktop
I don't know how nwg-panel actually implements the icon assignment, but both .desktop files also include a StartupWMClass field which matches the app_id or class of the program windows respectively, which could be used for this purpose.
The text was updated successfully, but these errors were encountered: