-
-
Notifications
You must be signed in to change notification settings - Fork 246
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
Tray (Notification) icon broken in MATE with snap images #1155
Comments
Hi, On 1st impressions, this looks like a snap configuration issue. I would check around snap repo and see if there is something there. Otherwise I would suggest using one of the other packages. Alternatively, see if you can provide the icon using the appIcon config option (see https://github.com/IsmaelMartinez/teams-for-linux/tree/develop/app/config). Just download one of this https://github.com/IsmaelMartinez/teams-for-linux/tree/develop/app/assets/icons and see if that works for you. Use the full path. Snap tends to be iffy in many installations. Sorry about that. |
I prefer to use the snap at the moment. And I'm forced to use a GNOME derivative (ie: MATE) otherwise I'd just use XFCE (my preference) and be done with it. That said, you gave me some breadcrumbs! While using snap, I can only point Next step was to try copying the DEB package icons into
They point to an empty If we populate this properly in the snap package, perhaps it will work? Can this be fixed in the snap package at your convenience and then I can test it again. Thanks! |
I tried to copy the DEB package's After copying, I also tried several permutations of using --appIcon too, no go. Sorry, I don't know enough about this to help further. |
Can you try the workaround in #888 ? If MATE is a version of GNOME, I think this might just be the electron issue @jijojosephk has mentioned in the past |
Thanks for the suggestions. Yes, unfortunately, before I filed the bug, I tried every workaround I could find in the TfL bug database related to tray icons, and a few on the internet, including that one. I also tried different permutations of values (blank, GNOME, XFCE, etc) for Going from this assertion: That tells me it's a icon resource location problem of some sort going on in the snap image. Considering that MATE is a GNOME2 fork, and not GNOME3, it stands to reason that the missing resources from Also note that these files are present in the DEB package, which works fine. Those are my thoughts, but I am no desktop environment expert. Here's a list of all of the broken symlinks used by the snap package from
|
Let's see if @jijojosephk shares some light on that gnome issue and we can see if it is the same or something else. It could be that electron/or electron builders do not support MATE in the latest versions. Worth exploring either electron-builder or electron to see if there are other people with the same issue. They might have a workaround or something. I will see if I can have a look but I am quite limited these next few weeks |
This sounds similar. signalapp/Signal-Desktop#6691 |
Thanks. I'm not too sure it is the same. In my case, the icon is reliably appearing with all desktop types, but only MATE shows a broken image. It's also important to note that I can click on the broken image in the tray and get the normal TfL menu. But maybe this will get some more visibility due to that bug. |
Hello. I am seing the same issue under xfce4. Can confirm that /snap/teams-for-linux/559/data-dir/icons/ is completely empty. This does not seem right? 😮 |
Hi @hanlof -- actually the systray icon works under XFCE (Ubuntu 22.04) if you disable Ayatana Indicator Application under "Session and Startup". Then reboot. I also have libnotification-plugin and libsystray.so running (use ps -efww to verify). I do know Ayatana conflicts with those. I've read it elsewhere. I'm staring at the icon in the systray on my XFCE desktop right now. LOL. Thus, I'm not sure if this is a TfL issue on XFCE. But it could be an issue with latest (and multiple) systray/notification interfaces, I'm not sure. Desktop Linux has a lot of variables in play. And competing technologies. I've determined that XFCE does not seem to need "data-dir/icons" to work properly. It renders icons differently apparently. I tried all of the same tricks with MATE and had no luck resolving with that desktop. Since MATE is derived from GNOME2, I do wonder if the missing "data-dir/icons" is affecting that desktop only. But I am not sure. I know my way around XFCE more than GNOME. |
Also try installing the DEB package with XFCE. If the tray icon still does not work, it's definitely NOT a TfL issue. Only the snap image is affected on MATE. The DEB package works fine for both desktops in my experience. If an icon does not work after installing the DEB package (be sure to launch |
Confirmed! This does make the teams icon show up in systray and thank you for that! 🙏 BUT, I do not see any numbers in systray indicating unread messages or indicating away/dnd/online/etc status. Perhaps those images are the missing resources. It can't be good to have those broken links. |
@hanlof , try moving to the latest available version and see if you can see the numbers, as this might be related to another already fixed issue related to MS moving from angular to react. |
Hi all. The counter works fine for me. I was running 1.4.31 and I can confirm with the DEB package, running under MATE. Also confirmed working using the snap under XFCE (assuming the aforementioned steps have been taken). Both cases on Ubuntu 22.04. Just updated to 1.4.35 and it's still working. SIde note, this can be easily tested by marking a chat message as unread buy clicking on a message, selecting "..." and then selecting "Mark as unread". The counter should immediately appear or increment. |
closing as there is a known workaround provided. Do write back if the workaround is not working for you. |
Hi @IsmaelMartinez, could you please describe the workaround (other than using the DEB package)? The bug still exists in snap package under MATE and that's the concern of this bug. Thanks. |
aye, the workaround is not to use the snap package but to use the deb one. I know that might be a pain snap is really causing a lot of problems for a few people. I hope you understand. We are only a few (normally a couple) of people supporting this, and need to try to keep the number of issues to a manageable number. Specially as I do have a life/work to continue doing 😄 I would recommend looking around apparmour specially if you aren't using a standard installation. By standard installation I mean anything that is not 'old school'. As an example, I do remember spending far too long to understand that apparmour wasn't properly working because my path wasn't |
Side note: the (latest) 1.5.0 upgrade using snap also breaks the running application icon under XFCE. I will try the usual workaround to see if I can get it back (this will have to wait until next week). The tray icon still works under XFCE, I'm talking about the running application icon now in the icon window and virtual desktop itself. What a frustrating situation. It's a shame because I much prefer using snap images, which are much more secure, especially for anything untrusted like a browser, and much more especially an app talking to Microsoft that probably tries to vacuum as much information as it can from your computer and send it off to the mother ship. Anyways, this feels like icon resources are missing or lacking in the snap image. Especially based on some of my previous findings regarding broken symlinks to icons in the snap package affecting MATE. Unfortunately work/life balance is also preventing me from debugging this further. If I come across anything, I'll update this thread. |
Aye, completely understand. Strange that the 1.5.0 breaks the running application icon. Both changes are behind a feature flag what probably means it is a configuration option with apparmour (or another snap part). We do filter a lot of rubbish (see #1045 (comment)) - but we should probably leave some of those to call back home as it is breaking people login 😄 We can re-open if you manage to find something. |
@IsmaelMartinez, thank you for filtering the "rubbish". I didn't realize that. (Oh, I posted a comment to that thread since that login issue hasn't been a major issue for me anymore since switching to Teams 2.0) |
Update: 1.6.1 fixes the broken running application icon. Thank you! But the tray icon is still broken using the snap image with MATE as originally reported (works fine with XFCE and GNOME). |
Describe the bug
The tray icon appears broken when running from snap using MATE desktop.
The same icon works fine if installed via DEB package on MATE desktop.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The proper Teams icon should appear in the system tray (notification area, indicator area, etc)
Screenshots
MATE + snap: broken
MATE + DEB: good
MATE + DEB + snap running at same time: suddenly good
Desktop (please complete the following information):
Additional context
Tried using workaround from other bugs (#506) to no avail.
Only happens with snap image. DEB package has proper icon, as expected.
XFCE, GNOME, Unity also have correct icon when running the snap. This is MATE only.
Additional testing:
Installing both DEB and snap at the same time, still broken icon running snap version only.
Running both DEB and snap at the same time, both icons suddenly appear correct.
Closing DEB version with snap version still running, snap icon reverts back to broken again.
The text was updated successfully, but these errors were encountered: