-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
swaybar renders fcitx's tray icon as red sad face #5645
Comments
Set your bar's icon theme to Adwaita |
Thanks. That works, and also makes sense:
I guess waybar works by default because it gets the icon theme from the general GTK configuration. |
It would probably help to add a debug message about which icon theme is being used. |
I had the same problem and setting the icon theme to Adwaita indeed now renders the fcitx symbol correctly. However sway stil spams the journal with messages of this type: Anything I am missing here? |
This issue appeared again after the latest system update. The icon theme is Adwaita. |
@amano-kenji Happened to me this morning after I updated my Arch. I tried installing a new random icon theme ( |
I fixed this in Ubuntu 23.10 by installing |
(Copying from #4825 (comment) on emersion's request to not reuse that issue.)
Sway Version:
sway version v1.5
Debug Log: https://gist.github.com/Arnavion/0718ea34304e9188d5d5197ef651585c#file-sway-debug-log (
swaybar
was also run with-d
)Configuration File: Minimal config https://gist.github.com/Arnavion/0718ea34304e9188d5d5197ef651585c#file-sway-debug-config
Stack Trace: None
Description:
swaybar renders fcitx's tray icon as a red sad face just like in #4825:
(There are two icons because the first one is from fcitx running in my original tty with a non-debug sway session, and the second is from the fcitx
exec_always
'd into the debug sway session.)fcitx according to dbus has:
(Note: This image is from the original issue, which is why the dbus names doesn't match.)
To clarify for anyone not familiar with d-feet's UI:
.IconName
is set to"input-keyboard"
,.IconThemePath
is set to""
. I did not query the other properties which is why they don't show their values.Looking at
swaybar/tray/item.c
, the error logs are benign since it just gets whatever properties it can. It does look up icon using the value it got fromIconName
, so I'm not sure why it's failing to find it.$ find /usr/share/icons -name 'input-keyboard.*' /usr/share/icons/Adwaita/16x16/legacy/input-keyboard.png /usr/share/icons/Adwaita/22x22/legacy/input-keyboard.png /usr/share/icons/Adwaita/24x24/legacy/input-keyboard.png /usr/share/icons/Adwaita/256x256/legacy/input-keyboard.png /usr/share/icons/Adwaita/32x32/legacy/input-keyboard.png /usr/share/icons/Adwaita/48x48/legacy/input-keyboard.png
FWIW the tray icon renders fine with waybar. It appears to be using the
/usr/share/icons/Adwaita/16x16/legacy/input-keyboard.png
one.And in case that index.theme error is relevant:
The text was updated successfully, but these errors were encountered: