-
-
Notifications
You must be signed in to change notification settings - Fork 2.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
Left-click on tray icon opens menu instead of show/hiding the window #11772
Comments
Confirming. It is a hassle to fiddle with menus when I just want to open the chat window from the system tray / indicator icon. I should be able to just click it. Tested on Xubuntu linux, using the Riot electron app downloaded today from the ubuntu repo. I don't know how to get it to tell me its version number. |
Probably a dupe of #7553. |
A few weeks ago, left clicking opened Riot directly, but now I am also experiencing the same problem, now matter if left or right click, only the menu comes up. I'm using i3 with i3bar. |
I believe the electron version was updated so its probably an upstream issue |
If it's an upstream issue, has somebody on the riot dev team reported the issue upstream? |
I don't think anyone on the dev team can reproduce it on their machines and don't have time to set up i3 etc to reproduce it, do you get similar issues on any other modern electron apps? |
I don't use any other electron apps. Can you suggest one with which to test? For the record, the tray icon was behaving correctly for several versions (left click opens window), until a recent upgrade broke it again (left click opens menu). |
I use CentOS 7 and have the same issue. It shows only the menu "Show/hide and Quit" on the left click |
I can reproduce this on openSUSE Tumbleweed/Krypton with Element from the official repo and the Plasma DE. libappindicator3 is installed. Slack and Discord (both flatpaks) show the same behavior. |
The official repo is Debian and Ubuntu only, so which repo did you use? |
Sorry, it was a while since I installed it, I misremembered. I installed it from this repo which builds from the Fedora COPR. By official I actually meant a proper rpm package rather than a containerized one like flatpak. |
This is also an issue for as long as I remember on KDE Neon (based on Ubuntu) with the official package from: |
FWIW, I have this issue on a current Debian Sid with KDE 5.20.5. I installed electron-desktop from https://packages.riot.im/debian/pool/main/e/element-desktop/ and it pulled libappindicator3 as a dependency. |
I have the same issue in latest Kubuntu version. I found a workaround that's working for me from the Signal Issue (comment). For me it was: Now left clicking the tray icon of Element opens and hides the window directly instead of just opening the context menu. |
Thanks, @manuke42, works for me too. |
I hereby confirm the libappindicator3 workaround on Xubuntu 20.04 when applied to the flatpak build of Element. Adding these lines to the build-commands in im.riot.Riot.json did the trick:
|
This issue still present in 1.9.6, although touching those files does resolve it. |
This is no longer fixed by touching those files, back to being an issue. I am on latest Manjaro KDE Plasma. |
I wanted to create an issue about this problem, but it turned out there is an old one. |
It can [only, I'm afraid] be fixed by moving to a different toolkit (for example, QT) that is not made of a pile of garbage code like Electron is. |
Still works for me with the latest freedesktop (flatpak) runtime, built from the latest official deb package, by adding these steps to the flatpak build-commands section:
|
Upstream issue electron/electron#14941 |
does anyone know if those workarounds still work? |
well, seems to need to be recompiled anyways with that workaround from the short read i did, imo not too worth it since element releases are pretty frequent, would have to do it every time |
honestly from the last time i used nheko, im happy with electron qt would be nice though i like GTK better, themes look better |
no need to recompile it.
works. even after updates. At least under debian. |
Similarly, adding this to the flatpak
(Tested just now with Element 1.11.11 on KDE 5.20.5, Debian Stable) |
hi thanks for the reply! Adding these lines to the build-commands in im.riot.Riot.json did the trick: "touch /app/Element/libappindicator3.so.1", i saw you posted this earlier, how exactly can i do that? i cant find a im.riot.Riot.json did anywhere |
That variant of the workaround is for people who build the flatpak themselves. I did it using flathub's manifest, which is a yaml file, not json. (It packages the official element.io .deb file's Element binary.) |
Fixed in Electron 22 - element-hq/element-desktop#480 (comment) |
Description
Left-clicking on the tray icon does not show/hide the Riot desktop app. Instead, it shows the menu that also shows up on right click.
As I understand it, other people in the Riot Web/Desktop room do not seem to have this issue.
Steps to reproduce
Version information
The text was updated successfully, but these errors were encountered: