Closed careca1970 closed 1 year ago
Solaar is a GTK appliction and uses standard GTK calls to find icons. It uses the GTK icon theme for the default code tries to prepend a search path containing the Solaar icons just in case they are not avaiable from GTK. The relevant code is
_default_theme = Gtk.IconTheme.get_default()
_default_theme.prepend_search_path(p)
and
_default_theme.has_icon('battery-good'):
The warning shown in one of your log
2023-08-19 09:42:16,200,200 WARNING [MainThread] solaar.ui.icons: failed to detect icons
indicates that the has_icon
call did not find the icon.
So there doesn't appear to be anything else Solaar can do. Somehow the icon theme for your GTK default screen does not include the battery-good
icon, which Solaar takes as evidence that it doesn't include any battery icons.
Hi @pfps, thanks for fast reply!
I cannot understand why anything has changed from one day to the day after...
Some more facts:
When starting Solaar without any option, neither the battery icon "at the taskbar" nor "inside Solaar" shows correctly. The Solaar "green icon" gets showed at both places.
But, using "--battery-icons=symbolic" the battery icon "inside Solaar application" does show correctly! Thou, at the taskbar, the "gray Solaar" icon gets shown (instead of the "green" one).
Why the taskbar doesn't show the same icon as "inside Solaar"?
Some more data: Gnome Theme is "Adwaita Dark" Icon set is "Adwaita".
Below, the list of icons relating to "battery" status under "Adwaita" icon set present in my system.
Maybe an interesting additional note:
The tray icon on starting Solaar is "Solaar standard", as mentioned before. But if gnome-shell gets "restarted" (by means of Alt+F2, r), the icon changes to "image-loading", a "three points" icon available in Adwaita icon-set. Thereafter, it seems to stay unchanged until Solaar gets restarted. Please, see picture attached bellow.
Hello!
I was able to find the reason for the problem.
Gnome-Extension "AppIndicator and KStatusNotifierItem" was guilty.
I chose another extension to show tray items under Gnome, and now the right icon gets showed at topbar.
Many thanks for your support!
@careca1970 would you mind sharing the name of the alternative extension that works? I have a bug reported against solaar in Fedora for a similar issue. Perhaps we can ask appindicator extension upstream to investigate and fix and provide a work around while this is being fixed.
Hello @rathann,
The alternative extension is "Tray Icons: Reloaded by Martin".
Now, just after I closed this thread, things started showing similar problems as the original one (AppIndicator and KStatusNotifierItem Support by [3v1n0]). "Looking around" a bit, I could notice that the problem gets caused b gnome-shell itself.
In fact we should stick to the "original extension" AppIndicator and KStatusNotifierItem Support by [3v1n0] since it seems to be actually in production.
I am not really wiling to keep pace with this issue, but it would be really nice to have things working as before again.
Is there anything more to be done here?
Information
solaar --version
orgit describe --tags
if cloned from this repository): solaar 1.1.9uname -srmo
): Linux 6.4.10-200.fc38.x86_64 x86_64 GNU/Linuxsolaar show
:~/.config/solaar/config.yaml
(or~/.config/solaar/config.json
if~/.config/solaar/config.yaml
not present):Describe the bug Battery-icon does not show (anymore). Instead the "standard" solaar icon gets showed, and behaves normally. Since FC37 (after any updates) it stopped showing the battery status icon (as before). The reason for the change isn't clear for me. Sure, any installed updates had influence over that, but I did not come to search for it at that time. Now, I tryed including the option "-battery-icons=symbolic", but this doesn't seem to help. System Theme is "Adwaita" (standard Fedora Theme).
In the system logs, you can see it saying, the icon "battery-good" cannot be found in current theme. In fact, icons named "battery-good" can be found under many of the themes and at different places. Please, see listings bellow:
I am not aware to where solaar searchs for the battery icon-set...
How can one make sure, solaar will find the matching theme/icons? How does solaar checks to the right place to get the icons from? Where should they be available?
To Reproduce Steps to reproduce the behavior:
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
See "solaar show " with "--battery-icons=symbolic" option set bellow. Here, the command does not seem to have any influnce (tray-icon showed is "solaar fall-back icon".