-
Notifications
You must be signed in to change notification settings - Fork 404
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
Missing tray icon in GNOME #2156
Comments
Solaar is a GTK application and gets most of its icons using the normal GTK interface. If the icons are not available using this interface then Solaar cannot find them. The solution to this problem is to install the GTK icons in the right place using whatever means for this is provided by your distribution. |
Anything missing here? |
This depends on where GTK on your system expects to find icons. It also depends on what resolution is being used and what fall-back method are being by GTK. |
Installing libappindicator-gtk3 got the icon back in arch kde. Maybe adding it as a dependency would help? |
Sounds reasonable. The suggestion is already in docs/installation.md The precise package to install may depend on the Linux distribution so this is something for packagers to consider. |
I don't think that's the issue here. Afaics, I have all the necessary libraries installed. Immediately after I'm logged in, I do get an icon like this displayed: So my guess is, that there is some kind of battery event which triggers an icon update, which subsequently fails |
If battery icons show up in the Solaar main window then the problem is not missing or incorrect installation of icons but is instead a problem with the system tray. If battery icons do not show up in the Solaar main window then the likely cause is missing or incorrect installation of icons. Running Solaar as |
Is there anything more to be done here? |
Well, I do have the equivalent of libappindicator-gtk3 installed on Debian, I do have proper icon themes installed, but the problem persists. |
The issue appears to be that ubuntu-appindicator can't find the battery-good icon, which is should be available to it. So Solaar is doing the right thing. As I don't run ubuntu I don't have much expertise in fixing the problem. |
@pfps my guess is, that this issue happens whenever there is a battery event. Is there a way to force/trigger such an event manually so we can further debug this? |
Maybe related ubuntu/gnome-shell-extension-appindicator#283 |
You can force an icon change by turning off all devices or unplugging the receiver. But whether appindicator will produce messages is unknown. |
Is this still a problem? |
It is, yes. |
I changed the following. After that solaar worked properly:
Something computing the theme path is broken apparently, so I relied on the default. It now looks like this Bildschirmaufzeichnung.vom.2023-11-17.02-01-51.mp4 |
I dumped
It's now obvious why this is broken under the AppIndicator |
This now also explains the error message I posted in my initial report:
|
Using /usr/share/solaar/icons as theme path will break the lookup of the icons within the AppIndicator based tray, resulting in: Okt 10 14:54:08 pluto ubuntu-appindicators@ubuntu.com[2156]: indicator-solaar, Impossible to lookup icon for 'battery-good' in /usr/share/solaar/icons Fix that by using the default theme path. Fixes: pwr-Solaar#2156
Using /usr/share/solaar/icons as theme path will break the lookup of the icons within the AppIndicator based tray, resulting in: ``` Okt 10 14:54:08 pluto ubuntu-appindicators@ubuntu.com[2156]: indicator-solaar, Impossible to lookup icon for 'battery-good' in /usr/share/solaar/icons ``` Fix that by using the default theme path. Fixes: pwr-Solaar#2156
Using /usr/share/solaar/icons as theme path will break the lookup of the icons within the AppIndicator based tray, resulting in: ``` Okt 10 14:54:08 pluto ubuntu-appindicators@ubuntu.com[2156]: indicator-solaar, Impossible to lookup icon for 'battery-good' in /usr/share/solaar/icons ``` Fix that by using the default theme path. Fixes: pwr-Solaar#2156
This was broken in #1129 |
Hmm. That change was, I think, to fix a problem with some implementations of appindicator. I'll take a closer look. |
The appindicator on my system uses this path as an addition to the paths it normally searches. I guess some other systems work differently. But appindicator needs to know where to pick up the Solaar icons. Did you move the Solaar icons to a standard place? |
Which "other" appindicator? Does it not use the reference implementation from libappinidcator?
|
The appindicator on my system uses this path as an addition to the paths it normally searches. I guess some other systems work differently. It appears that the appindicator on my system can find the Solaar icon even without adding the path and even after I scrub all the Solaar icons from the normal places. So it appears that your change will work correctly. @rathann What is a good way to try out this change on a system that has Solaar installed only via an rpm package? |
@Rathaan The problem that is being addressed here is accessing the Solaar custom icons. There is code in Solaar to try to find these icons in various places. What I need to do is to see whether a simplification of the code will work if Solaar is installed from an rpm package. If you send me the script you use to create the package I should be able to create a package on my machine and install it locally. |
@mbiebl Solaar has considerable code to try and find where its icons are stored. I think this was put in in the past when finding themed icons was not so sophisticated. I'm going to remove this code and depend on Solaar finding icons in the normal way plus having the Solaar custom icons put a place where they should be found in the normal way. I think I have this working but need to check out whether it also works when Solaar is packaged and installed from the package. |
I think this is a good idea, thanks. If you want me to test something, let me know. |
PR #2177 updates the handling of icons. It includes your change but also installs icons better and removes some code in Solaar that tries to find icons in places other than where GTK expects them. Please try it out. You will have to download PR #2177 and try it out in several ways. First just try running bin/solaar and see whether all the icons show up correctly. Second, use |
I'm running GNOME and I use the appindicator extension.
System is a Debian unstable installation with solaar version 1.1.10
As you can see, no proper icon is displayed for soolar in the system tray and in the journal I see the following warning
The text was updated successfully, but these errors were encountered: