element-web icon indicating copy to clipboard operation
element-web copied to clipboard

desktop v1.12.27 : app status icon in gnome panel is broken

Open Nemric opened this issue 3 months ago • 28 comments

Steps to reproduce

  1. install and use AppIndicator/KStatusNotifierItem gnome extension
  2. install element desktop from tarball (here in /opt with /opt/element-desktop already created) curl -L https://packages.element.io/desktop/install/linux/glibc-x86-64/element-desktop-1.12.26.tar.gz | tar -xz --strip-component=1 --directory=element-desktop
  3. create /usr/share/applications/element.desktop as :
[Desktop Entry]
Name=Element
StartupWMClass=element-desktop
GenericName=Matrix Client
MimeType=x-scheme-handler/element;x-scheme-handler/io.element.desktop;
Exec=/opt/element-desktop/element-desktop %U
Icon=element-desktop
Type=Application
Categories=Network;InstantMessaging;
  1. run element 1.12.26 from gnome desktop app list
  2. see Image status icon
  3. quit element desktop
  4. Upgrade to 1.12.27 with curl -L https://packages.element.io/desktop/install/linux/glibc-x86-64/element-desktop-1.12.27.tar.gz | tar -xz --strip-component=1 --directory=element-desktop
  5. run element 1.12.27 from gnome desktop app list
  6. see that app icon indicator fail

Outcome

What did you expect?

I'm used to upgrade element desktop as described above since months/years, everything went right until today and app icon indicator works great with new message count

What happened instead?

App indicator icon fails to launch

Operating system

Fedora workstation 44

Application version

Element desktop 1.12.27

How did you install the app?

From tarballs : https://packages.element.io/desktop/install/linux/glibc-x86-64/index.html

Homeserver

Synapse

Will you send logs?

No

Nemric avatar Sep 01 '26 17:09 Nemric

Also applies to xfce panel and standard installation from package repository (Linux Mint here) - minimizing to panel seems to be broken in general.

Moini avatar Sep 01 '26 18:09 Moini

Potentially related: autostart doesn't work anymore, either.

Moini avatar Sep 01 '26 20:09 Moini

I'm not sure if this applies specifically to this issue, but I've also noticed that Element is failing to show the proper tray icon on a Linux Mint 22.3 Cinnamon system, specifically the Flatpak release. I also can't seem to interact with the broken tray icon through a context menu either.

Valenthyne avatar Sep 02 '26 02:09 Valenthyne

Same on Debian 13 (as solution: downgraded to 1.12.26 using https://packages.element.io/debian/pool/main/e/element-desktop/)

arthur-cpp avatar Sep 02 '26 09:09 arthur-cpp

Same issue for me, but Element Desktop 1.12.25 on Arch Linux with KDE Plasma (Wayland). Maybe an Electron bug? Using Electron 43.4.1 at the moment...

EDIT: I just updated electron to 43.5.1 and tray is visible again. Seems indeed to be an electron issue, see https://github.com/electron/electron/pull/53215 Fixed in Electron v43.5.0

plui29989 avatar Sep 02 '26 10:09 plui29989

Equivalent issue here, although not using gnome, but Cinnamon Mint. Tray icon becomes this grey triangle and it can't be interacted. Turning off Element requires terminal. When will it be fixed?

yehu-hunter avatar Sep 04 '26 22:09 yehu-hunter

I have the same issue - no more tray icon with 1.12.27 in Kubuntu 26.04 and KDE 6.6.

Signal had the same problem recently: https://github.com/signalapp/Signal-Desktop/issues/7992

Seems to be a problem with Electron again.

arnowelzel avatar Sep 05 '26 08:09 arnowelzel

Same issue for me, but Element Desktop 1.12.25 on Arch Linux with KDE Plasma (Wayland). Maybe an Electron bug? Using Electron 43.4.1 at the moment...

EDIT: I just updated electron to 43.5.1 and tray is visible again. Seems indeed to be an electron issue, see electron/electron#53215 Fixed in Electron v43.5.0

How to update to Electron 43.5.1? Isn't that bundled with the application?

arnowelzel avatar Sep 05 '26 08:09 arnowelzel

Same issue for me, but Element Desktop 1.12.25 on Arch Linux with KDE Plasma (Wayland). Maybe an Electron bug? Using Electron 43.4.1 at the moment... EDIT: I just updated electron to 43.5.1 and tray is visible again. Seems indeed to be an electron issue, see electron/electron#53215 Fixed in Electron v43.5.0

How to update to Electron 43.5.1? Isn't that bundled with the application?

In Arch Linux it's not bundled but installed separately as a dependency, see https://archlinux.org/packages/extra/x86_64/element-desktop/

plui29989 avatar Sep 05 '26 11:09 plui29989

It would appear things are in working order with the tray icon today after some updated packages for my Linux Mint install. I'd encourage those still experiencing issues to check any pending updates.

I don't know for sure, but I have a hunch it was the "xapp-common" update from 3.2.2+xena to 3.2.3+xena.

Valenthyne avatar Sep 06 '26 00:09 Valenthyne

It would appear things are in working order with the tray icon today after some updated packages for my Linux Mint install. I'd encourage those still experiencing issues to check any pending updates.

I don't know for sure, but I have a hunch it was the "xapp-common" update from 3.2.2+xena to 3.2.3+xena.

Did youneed to reboot it first? I just updated my Mint, have the 3.2.3 one and the issue remains.

yehu-hunter avatar Sep 06 '26 03:09 yehu-hunter

Did youneed to reboot it first? I just updated my Mint, have the 3.2.3 one and the issue remains.

I believe so, yes. That, or logging out of the session and logging back in.

Valenthyne avatar Sep 06 '26 03:09 Valenthyne

Did youneed to reboot it first? I just updated my Mint, have the 3.2.3 one and the issue remains.

I believe so, yes. That, or logging out of the session and logging back in.

Hello. It seems rebooting after the upgrade brough the icon back, and it's possible to close the process and open the window via right click options, but simply left clicking on the icon no longer opens the window. Could you confirm that? I believe the issue is not fully solved if the left click no longer works.

yehu-hunter avatar Sep 06 '26 04:09 yehu-hunter

It would appear things are in working order with the tray icon today after some updated packages for my Linux Mint install. I'd encourage those still experiencing issues to check any pending updates.

I don't know for sure, but I have a hunch it was the "xapp-common" update from 3.2.2+xena to 3.2.3+xena.

same, one of the following updates probably fixed my issue

Image

JokerGermany avatar Sep 06 '26 08:09 JokerGermany

I can confirm for 100% that upgrading libxapp1 to 3.2.3 made the tray function again for Element Desktop. In the limited way it was (right-click show for example). But at least it indicated again.

Probably a logout from the X session would be best but I killed xapp-sn-watcher and xdg-desktop-portal-xapp instead.

Running Linux Mint 22.3 Cinnamon edition.

deebfeast avatar Sep 06 '26 09:09 deebfeast

I have 3.2.3 of the libxapp1 package, and no icon - on Xfce.

Moini avatar Sep 06 '26 11:09 Moini

Hello. It seems rebooting after the upgrade brough the icon back, and it's possible to close the process and open the window via right click options, but simply left clicking on the icon no longer opens the window. Could you confirm that? I believe the issue is not fully solved if the left click no longer works.

Yeah, actually. I can confirm as well that the left click does not restore the window. Strange. This means to me the issue is not actually solved just yet because functionality is less than it is supposed to be.

same, one of the following updates probably fixed my issue

I had those updates as well I believe. Not really sure now which one solved the issue given deebfeast had it work after updating the libxapp1 package, though Moini does not have their tray icon restored. Very confusing situation.

Valenthyne avatar Sep 06 '26 15:09 Valenthyne

Hello. It seems rebooting after the upgrade brough the icon back, and it's possible to close the process and open the window via right click options, but simply left clicking on the icon no longer opens the window. Could you confirm that? I believe the issue is not fully solved if the left click no longer works.

Yeah, actually. I can confirm as well that the left click does not restore the window. Strange. This means to me the issue is not actually solved just yet because functionality is less than it is supposed to be.

The following seemed to have "fixed" it for me, using Cinnamon. Go to applets (right-click taskbar). Disable XApp Status Applet. Restart Element Desktop. Seems to not need this applet? Maybe some other applications will, not sure. Also with Xfce I remember there being a plugin active for this. But I can't test that. Anyway, I hope this works for some! [edit: as workaround, for now].

deebfeast avatar Sep 06 '26 15:09 deebfeast

The following seemed to have fixed it for me, using Cinnamon. Go to applets (right-click taskbar). Disable XApp Status Applet. Restart Element Desktop. Seems to not need this applet anymore? Maybe some applications still do, not sure. Also with Xfce I remember there being a plugin active for this. But I can't test that. Anyway, I hope this works for some!

This actually does seem to function as a workaround, though there are at least in my case other uses for this than just Element. For one, it seems to keep most of the tray icons scaled about the same size whereas without it, there isn't nearly as much consistency.

I have noticed that if you re-enable it after following your steps of disabling it and restarting Element, you can still use the icon to access the window as before.

I'm still not entirely sure what all is going on here, and ultimately these are still workarounds and partial fixes. I would really like to hear from someone on the development team at this point, as it's hard to tell what is a fault of Element versus these libraries versus what Element could do to account for these libraries. As far as I can tell, no other piece of software I use has suddenly had its tray icon start having difficulty functioning correctly.

Valenthyne avatar Sep 06 '26 17:09 Valenthyne

The following seemed to have fixed it for me, using Cinnamon. Go to applets (right-click taskbar). Disable XApp Status Applet. Restart Element Desktop. Seems to not need this applet anymore? Maybe some applications still do, not sure. Also with Xfce I remember there being a plugin active for this. But I can't test that. Anyway, I hope this works for some!

This actually does seem to function as a workaround, though there are at least in my case other uses for this than just Element. For one, it seems to keep most of the tray icons scaled about the same size whereas without it, there isn't nearly as much consistency.

I have noticed that if you re-enable it after following your steps of disabling it and restarting Element, you can still use the icon to access the window as before.

I'm still not entirely sure what all is going on here, and ultimately these are still workarounds and partial fixes. I would really like to hear from someone on the development team at this point, as it's hard to tell what is a fault of Element versus these libraries versus what Element could do to account for these libraries. As far as I can tell, no other piece of software I use has suddenly had its tray icon start having difficulty functioning correctly.

Hello! I can confirm it here as well. Disabling the XApp Status Applet seems to work if Element is not running when you do it, but this is clearly not a solution: We shouldn't have to disable an applet just so left click works as intended on a tray icon. Enabling the applet back brings the glitch back.

yehu-hunter avatar Sep 06 '26 19:09 yehu-hunter