Skip to content
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

Application doesn't close to icon (no tray icon) #23993

Closed
JackJeisly opened this issue Dec 14, 2022 · 75 comments · Fixed by element-hq/element-desktop#530
Closed

Application doesn't close to icon (no tray icon) #23993

JackJeisly opened this issue Dec 14, 2022 · 75 comments · Fixed by element-hq/element-desktop#530
Assignees
Labels
A-Electron O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Z-Platform-Specific Z-Upstream

Comments

@JackJeisly
Copy link

Steps to reproduce

  1. Where are you starting? What can you see?
    I start a Element Nightly and doesn't see icon in tray.

Doesn't work option "Show tray icon and minimise window to it on close". In "Preferences" this option are enabled. If I close window application just close.

Outcome

What did you expect?

I expect that window will be closed to tray icon

What happened instead?

when I close window application just close.

Operating system

Ubuntu Linux 20.04 LTS

Application version

Версия Element Nightly: 2022121401 Версия Olm: 3.2.12

How did you install the app?

From repo "https://packages.element.io/debian/ default main"

Homeserver

matrix.org

Will you send logs?

Yes

@G2G2G2G
Copy link

G2G2G2G commented Dec 14, 2022

Yep happens to me in nightly as well on arch, something broke system tray icon in last few updates

it does stay running in the background fine, the icon just doesn't show up regardless

@t3chguy
Copy link
Member

t3chguy commented Dec 14, 2022

The upstream tray icon implementation changed, no longer using libappindicator.
electron/electron#36472

Looks related to electron/electron#36602

Depends on your DE and whether it seems to support StatusIconLinuxDbus

@t3chguy t3chguy added Z-Platform-Specific S-Major Severely degrades major functionality or product features, with no satisfactory workaround A-Electron Z-Upstream O-Occasional Affects or can be seen by some users regularly or most users rarely labels Dec 14, 2022
@G2G2G2G
Copy link

G2G2G2G commented Dec 14, 2022

It doesn't even work on OpenSUSE KDE tumbleweed that I see.. (I use a WM on my main machine)
I assume what works is gnome, looks like other guy has XFCE working which is GTK too so maybe that's it.

looking at this comment electron/electron#36471
"we believe we've done a better job this time but I don't want to send this to an existing stable line"
lol, yea definitely just needs a fallback to the libappindicator

I only see mention of "StatusIconLinuxDbus" on chromium, and election nothing else.. there's a GTK.h file in some mailing list but it's part of electron too
Is it called something else? I'd add it to my WM

@JackJeisly
Copy link
Author

yea definitely just needs a fallback to the libappindicator
If it isn't work in popular distrs - needs a fallback to the libappindicator. And ideally fallback from electrone and chromium to C or C++. :)

@AffSeda
Copy link

AffSeda commented Dec 26, 2022

Same issue on Debian testing/MATE. I assume this "StatusIconLinuxDbus" isn't just some package I can install ?

@weeman1337 weeman1337 changed the title Application doesn't close to icon Application doesn't close to icon (no tray icon) Dec 27, 2022
@G2G2G2G
Copy link

G2G2G2G commented Dec 27, 2022

@AffSeda no, from what I see the "libappindicator" was the easy one that you could "just install" and it'd make everything work magically.

The new one they do now is something to do with this https://github.com/AyatanaIndicators/libayatana-indicator (which is linked to on the rocket chat github below)

This was supposed to be fixed when electron 22 is used, but I think it is already used and still didn't get fixed
Rocket chat and several other programs have the same issue, it's all cuz of electron stuff.
see here: RocketChat/Rocket.Chat.Electron#2536 (comment)

Sooo unless my element user agent is wrong, we are on version 22 of electron and it still doesn't work, so no idea... unfortunately we can't just install something though

Botspot/pi-apps#1930 version 22 got added to the list lmao, looks like they broke a lot of stuff on a lot of different things

@mairacanal
Copy link

I'm also having this problem with Fedora 37/GNOME 43.2 and Element 1.11.17. I installed libappindicator, but it didn't solve my problem.

@AffSeda
Copy link

AffSeda commented Dec 29, 2022

@AffSeda no, from what I see the "libappindicator" was the easy one that you could "just install" and it'd make everything work magically.

That's unfortunate. I never thought the icon would annoy me that much.. but it actually does, lol. I keep losing the Element window, and for some reason sometimes my system opens a new Element instead of bringing the other window to the front if I relaunch it while it's running. I've downgraded for now.

@JackJeisly
Copy link
Author

I frost Element updates on 1.11.16 too, becouse it normal work.

@G2G2G2G
Copy link

G2G2G2G commented Dec 29, 2022

@AffSeda

and for some reason sometimes my system opens a new Element instead of bringing the other window to the front if I relaunch it while it's running. I've downgraded for now.

yea that's been a bug for like 2 years lol. It is a funny one, careful not to close the old one with the new one up or it'll delete your login session and reset both elements to default non logged in

@JokerGermany
Copy link

JokerGermany commented Jan 1, 2023

Same problem here with Ubuntu Mate 22.04
Updated today to 1.11.17 and got this.
downgraded to 1.11.16 and tray icon is there again.

Really severe bug...

@JokerGermany
Copy link

JokerGermany commented Jan 1, 2023

Would be nice if you would stop the rollout for the linux version, this will be a support nightmare for me who support some people...

Will do an every device which I get access to the following:

sudo sh -c 'echo "Package: element-desktop" >> /etc/apt/preferences.d/element-desktop'
sudo sh -c 'echo "Pin: version 1.11.17" >> /etc/apt/preferences.d/element-desktop'
sudo sh -c 'echo "Pin-Priority: -1" >> /etc/apt/preferences.d/element-desktop'

And then install 1.11.16 if 1.11.17 is installed...

@JokerGermany
Copy link

JokerGermany commented Jan 1, 2023

@G2G2G2G

@AffSeda

and for some reason sometimes my system opens a new Element instead of bringing the other window to the front if I relaunch it while it's running. I've downgraded for now.

yea that's been a bug for like 2 years lol. It is a funny one, careful not to close the old one with the new one up or it'll delete your login session and reset both elements to default non logged in

Do you have an link to that issue? Think that happens to some of the peoples i support...

@mcuguy
Copy link

mcuguy commented Jan 2, 2023

Same here. On Ubuntu.
The only way to have the icon back is to disable the option in Preferences|General and close Element.
Re-open Element and enable the icon again and it shows back.
Unfortunately, at the next opening it is not shown again, unless you remember to disable the option before closing and re-enabling it at the next run.
But still a bad workaround. Please fix it!!!

@G2G2G2G
Copy link

G2G2G2G commented Jan 2, 2023

@JokerGermany no link, can't figure out how to reliably reproduce it so figuring out why it happens might be impossible - waste days on someone's time where they can be doing something of more importance
if I figure out exactly how to guarantee it opens a second one, I'd make an issue or just fix it myself

@FizzyTea
Copy link

FizzyTea commented Jan 2, 2023

I have attempted to downgrade to 1.11.16 using apt but this versions appears unavailable.
sudo apt install element-desktop=1.11.16
results in
E: Version '1.11.16' for 'element-desktop' was not found

Can I downgrade with apt or do I need to build from source? (Ubuntu 20.04 with XFCE)
`

@JokerGermany
Copy link

JokerGermany commented Jan 2, 2023

@FizzyTea
https://packages-old.element.io/debian/pool/main/e/element-desktop/
Download it and then i use sudo dpkg -i

@FizzyTea
Copy link

FizzyTea commented Jan 2, 2023

@JokerGermany

@FizzyTea https://packages-old.element.io/debian/pool/main/e/element-desktop/ Download it and then i use sudo dpkg -i

Thanks for your help.

@JackJeisly
Copy link
Author

@InklingGirl , i checked it in the last version of "element-nighly". Yes, it work.

@InklingGirl
Copy link

@t3chguy when is the ETA for a new release?

@t3chguy
Copy link
Member

t3chguy commented Feb 6, 2023

Every two weeks on a tuesday, next is scheduled to go into RC tomorrow, stable a week on tuesday.

@JokerGermany
Copy link

Is it in 1.11.23?
I don't find this in the patch notes:

Update to Electron 22.2.0 - fix tray icons in Linux (element-hq/element-desktop#530). Fixes #23993.

@t3chguy
Copy link
Member

t3chguy commented Feb 14, 2023

@JokerGermany you might want to try Ctrl F

image

@JokerGermany
Copy link

¯\(ツ)/¯ I tried Ctrl F, looks like i have other patchnotes:
grafik

@t3chguy
Copy link
Member

t3chguy commented Feb 14, 2023

@JokerGermany are you looking at the wrong repo maybe? Electron is only in the desktop repo as it doesn't affect the webapp.

@JokerGermany
Copy link

@JokerGermany are you looking at the wrong repo maybe? Electron is only in the desktop repo as it doesn't affect the webapp.

ups yes, sorry didn't know that desktop has it's own release notes...

@Z-Brox
Copy link

Z-Brox commented Feb 17, 2023

Unfortunatley no tray icon on Debian 11 (XFCE) after updating to 1.11.23 yesterday. Funny enough the tray icon worked before installing that version … scratching my head … went back to 1.11.16 and the icon's back.
Same problem with the latest nightly version.

@aidaho
Copy link

aidaho commented Feb 17, 2023 via email

@GitMeier
Copy link

Element version: 1.11.23
Olm version: 3.2.12

Tray icon is back on Ubuntu 20.04.5 LTS (focal)

@InklingGirl
Copy link

It is back for me too on Ubuntu 22.04.1 LTS (Jammy Jellyfish).

@floviolleau
Copy link

Hi,

I have the issue on Ubuntu Budgie 22.10
Element version: 1.11.23
Olm version: 3.2.12

Any clues?

@enigma9o7
Copy link

enigma9o7 commented Feb 22, 2023

If you're new to element, you could confirm its the same issue by testing 1.11.16 and making sure its working there.... cuz I think this issue is fixed for the rest of us. If it doesn't work for you in that version, then it's a different issue completely, just same symptom.

@Z-Brox
Copy link

Z-Brox commented Feb 22, 2023

Hi, folks,

during the weekend I've tested the new version 1.11.23 on my second PC (Debian 11, XFCE). Works without problems, icon's back in the tray.
But today in the office (Debian 11 and XFCE, like the other computer) I upgraded again from 1.11.6 to 1.11.23, restartet the machine and the problem's back - no icon in the tray but element is running. Purged the new version and reinstalled 1.11.16 and the icon is back. The same happens with both the Flatpak and the Debian package.

I'm starting to suspect there may be a problem just with that specific PC (maybe unregarded with element?).

@rwjack
Copy link

rwjack commented Feb 28, 2023

~ ❯ element-desktop
...

Icon is in taskbar, but element is blurry because running in wayland
image

~ ❯ element-desktop -enable-features=UseOzonePlatform --ozone-platform=wayland
...

Icon missing in taskbar, but element is sharp as a crystal
image

Is this related to this issue?

su-ex added a commit to SchildiChat/element-desktop that referenced this issue Feb 28, 2023
* Description of QR code sign in labs feature ([\#23513](element-hq/element-web#23513)). Contributed by @hughns.
* Add option to find own location in map views ([\#10083](matrix-org/matrix-react-sdk#10083)).
* Render poll end events in timeline ([\#10027](matrix-org/matrix-react-sdk#10027)). Contributed by @kerryarchibald.
* Indicate unread messages in tab title ([\#10096](matrix-org/matrix-react-sdk#10096)). Contributed by @tnt7864.
* Open message in editing mode when keyboard up is pressed (RTE) ([\#10079](matrix-org/matrix-react-sdk#10079)). Contributed by @florianduros.
* Hide superseded rooms from the room list using dynamic room predecessors ([\#10068](matrix-org/matrix-react-sdk#10068)). Contributed by @andybalaam.
* Support MSC3946 in RoomListStore ([\#10054](matrix-org/matrix-react-sdk#10054)). Fixes element-hq/element-web#24325. Contributed by @andybalaam.
* Auto focus security key field ([\#10048](matrix-org/matrix-react-sdk#10048)).
* use Poll model with relations API in poll rendering ([\#9877](matrix-org/matrix-react-sdk#9877)). Contributed by @kerryarchibald.
* Support MSC3946 in the RoomCreate tile ([\#10041](matrix-org/matrix-react-sdk#10041)). Fixes element-hq/element-web#24323. Contributed by @andybalaam.
* Update labs flag description for RTE ([\#10058](matrix-org/matrix-react-sdk#10058)). Contributed by @florianduros.
* Change ul list style to disc when editing message ([\#10043](matrix-org/matrix-react-sdk#10043)). Contributed by @alunturner.
* Improved click detection within PiP windows ([\#10040](matrix-org/matrix-react-sdk#10040)). Fixes element-hq/element-web#24371.
* Add RTE keyboard navigation in editing ([\#9980](matrix-org/matrix-react-sdk#9980)). Fixes element-hq/element-web#23621. Contributed by @florianduros.
* Paragraph integration for rich text editor ([\#10008](matrix-org/matrix-react-sdk#10008)). Contributed by @alunturner.
* Add  indentation increasing/decreasing to RTE ([\#10034](matrix-org/matrix-react-sdk#10034)). Contributed by @florianduros.
* Add ignore user confirmation dialog ([\#6116](matrix-org/matrix-react-sdk#6116)). Fixes element-hq/element-web#14746.
* Use monospace font for room, message IDs in View Source modal ([\#9956](matrix-org/matrix-react-sdk#9956)). Fixes element-hq/element-web#21937. Contributed by @paragpoddar.
* Implement MSC3946 for AdvancedRoomSettingsTab ([\#9995](matrix-org/matrix-react-sdk#9995)). Fixes element-hq/element-web#24322. Contributed by @andybalaam.
* Implementation of MSC3824 to make the client OIDC-aware ([\#8681](matrix-org/matrix-react-sdk#8681)). Contributed by @hughns.
* Improves a11y for avatar uploads ([\#9985](matrix-org/matrix-react-sdk#9985)). Contributed by @GoodGuyMarco.
* Add support for [token authenticated registration](https ([\#7275](matrix-org/matrix-react-sdk#7275)). Fixes element-hq/element-web#18931. Contributed by @govynnus.
* Update to Electron 22.2.0 - fix tray icons in Linux ([\element-hq#530](element-hq#530)). Fixes element-hq/element-web#23993.
* Jitsi requests 'requires_client' capability if auth token is provided ([\#24294](element-hq/element-web#24294)). Contributed by @maheichyk.
* Remove duplicate white space characters from translation keys ([\#10152](matrix-org/matrix-react-sdk#10152)). Contributed by @luixxiul.
* Fix the caption of new sessions manager on Labs settings page for localization ([\#10143](matrix-org/matrix-react-sdk#10143)). Contributed by @luixxiul.
* Prevent start another DM with a user if one already exists ([\#10127](matrix-org/matrix-react-sdk#10127)). Fixes element-hq/element-web#23138.
* Remove white space characters before the horizontal ellipsis ([\#10130](matrix-org/matrix-react-sdk#10130)). Contributed by @luixxiul.
* Fix Selectable Text on 'Delete All' and 'Retry All' Buttons ([\#10128](matrix-org/matrix-react-sdk#10128)). Fixes element-hq/element-web#23232. Contributed by @akshattchhabra.
* Correctly Identify emoticons ([\#10108](matrix-org/matrix-react-sdk#10108)). Fixes element-hq/element-web#19472. Contributed by @adarsh-sgh.
* Should open new 1:1 chat room after leaving the old one ([\#9880](matrix-org/matrix-react-sdk#9880)). Contributed by @ahmadkadri.
* Remove a redundant white space ([\#10129](matrix-org/matrix-react-sdk#10129)). Contributed by @luixxiul.
* Fix a crash when removing persistent widgets (updated) ([\#10099](matrix-org/matrix-react-sdk#10099)). Fixes element-hq/element-web#24412. Contributed by @andybalaam.
* Fix wrongly grouping 3pid invites into a single repeated transition ([\#10087](matrix-org/matrix-react-sdk#10087)). Fixes element-hq/element-web#24432.
* Fix scrollbar colliding with checkbox in add to space section ([\#10093](matrix-org/matrix-react-sdk#10093)). Fixes element-hq/element-web#23189. Contributed by @Arnabdaz.
* Add a whitespace character after 'broadcast?' ([\#10097](matrix-org/matrix-react-sdk#10097)). Contributed by @luixxiul.
* Seekbar in broadcast PiP view is now updated when switching between different broadcasts ([\#10072](matrix-org/matrix-react-sdk#10072)). Fixes element-hq/element-web#24415.
* Add border to "reject" button on room preview card for clickable area indication. It fixes element-hq/element-web#22623 ([\#9205](matrix-org/matrix-react-sdk#9205)). Contributed by @gefgu.
* Element-R: fix rageshages ([\#10081](matrix-org/matrix-react-sdk#10081)). Fixes element-hq/element-web#24430.
* Fix markdown paragraph display in timeline ([\#10071](matrix-org/matrix-react-sdk#10071)). Fixes element-hq/element-web#24419. Contributed by @alunturner.
* Prevent the remaining broadcast time from being exceeded ([\#10070](matrix-org/matrix-react-sdk#10070)).
* Fix cursor position when new line is created by pressing enter (RTE) ([\#10064](matrix-org/matrix-react-sdk#10064)). Contributed by @florianduros.
* Ensure room is actually in space hierarchy when resolving its latest version ([\#10010](matrix-org/matrix-react-sdk#10010)).
* Fix new line for inline code ([\#10062](matrix-org/matrix-react-sdk#10062)). Contributed by @florianduros.
* Member avatars without canvas ([\#9990](matrix-org/matrix-react-sdk#9990)). Contributed by @clarkf.
* Apply more general fix for base avatar regressions ([\#10045](matrix-org/matrix-react-sdk#10045)). Fixes element-hq/element-web#24382 and element-hq/element-web#24370.
* Replace list, code block and quote icons by new icons ([\#10035](matrix-org/matrix-react-sdk#10035)). Contributed by @florianduros.
* fix regional emojis converted to flags ([\#9294](matrix-org/matrix-react-sdk#9294)). Fixes element-hq/element-web#19000. Contributed by @grimhilt.
* resolved emoji description text overflowing issue ([\#10028](matrix-org/matrix-react-sdk#10028)). Contributed by @fahadNoufal.
* Fix MessageEditHistoryDialog crashing on complex input ([\#10018](matrix-org/matrix-react-sdk#10018)). Fixes element-hq/element-web#23665. Contributed by @clarkf.
* Unify unread notification state determination ([\#9941](matrix-org/matrix-react-sdk#9941)). Contributed by @clarkf.
* Fix layout and visual regressions around default avatars ([\#10031](matrix-org/matrix-react-sdk#10031)). Fixes element-hq/element-web#24375 and element-hq/element-web#24369.
* Fix useUnreadNotifications exploding with falsey room, like in notif panel ([\#10030](matrix-org/matrix-react-sdk#10030)). Fixes matrix-org/element-web-rageshakes#19334.
* Fix "[object Promise]" appearing in HTML exports ([\#9975](matrix-org/matrix-react-sdk#9975)). Fixes element-hq/element-web#24272. Contributed by @clarkf.
* changing the color of message time stamp ([\#10016](matrix-org/matrix-react-sdk#10016)). Contributed by @nawarajshah.
* Fix link creation with backward selection ([\#9986](matrix-org/matrix-react-sdk#9986)). Fixes element-hq/element-web#24315. Contributed by @florianduros.
* Misaligned reply preview in thread composer #23396 ([\#9977](matrix-org/matrix-react-sdk#9977)). Fixes element-hq/element-web#23396. Contributed by @mustafa-kapadia1483.
@floviolleau
Copy link

Hi,

I have another computer on Ubuntu 22.10
Element version: 1.11.23
Olm version: 3.2.12

And it is working fine, I have the tray icon (despite the blank screen at start up which is another issue).

@Z-Brox
Copy link

Z-Brox commented Mar 9, 2023

Hi, folks,

during the weekend I've tested the new version 1.11.23 on my second PC (Debian 11, XFCE). Works without problems, icon's back in the tray. But today in the office (Debian 11 and XFCE, like the other computer) I upgraded again from 1.11.6 to 1.11.23, restartet the machine and the problem's back - no icon in the tray but element is running. Purged the new version and reinstalled 1.11.16 and the icon is back. The same happens with both the Flatpak and the Debian package.

I'm starting to suspect there may be a problem just with that specific PC (maybe unregarded with element?).

Hi,

as suspected the problem of Element still not showing up in the tray is related with that one specific system (other apps like onwcloud etc. don't show up from time to time, too). Can't find the reason but I want to set it up with a new installation anyway.
Element works on all of my other Linux systems flawlessly.

@drskalman
Copy link

It still does not show up in my tray.

Arch Linux
element-desktop 1.11.26-1
exwm

Downgrading to element-web-1.11.10-2 resolves the problem (I don't have 11.16 package cached). I have also no problem with nextcloud and other apps in my tray.

@t3chguy
Copy link
Member

t3chguy commented Mar 29, 2023

@drskalman the arch package is community maintained, please report issues with it to its maintainer.

@G2G2G2G
Copy link

G2G2G2G commented Mar 31, 2023

@drskalman this isn't an issue anymore, it's your system. I have it working across different WMs and DEs on different machines

@jahway603
Copy link

Still having this issue. It was never resolved.

@jahway603
Copy link

This PR element-hq/element-desktop#530 shows that an "upgrade" to Electron 22.x occurred that fixed this issue. I have Electron 25.x & this is still an issue. Any ideas?

@Mi-La
Copy link

Mi-La commented Feb 2, 2024

I just installed the electron app on xubuntu for the first time and I have no tray icon. I don't care if it's problem of my particular system, it's still the FIRST TIME USER EXPERIENCE.

@shivajiva101
Copy link

If you're coming here because this issue isn't fixed for your system build, maybe try an alt matrix client such as Schildichat it might not be bleeding edge, but that isn't necessarily a problem.

If you're capabilities include scripting, don't use the Element setting, just launch Element after a few seconds delay with a script and the tray icon will be present every time. At least that is what consistently works for me. An easy test to check if delayed start works on your system is to disable launch on startup and manually launch it after a reboot. If Element launches with a tray icon present then scripting a delayed start will definitely work. Reducing the delay in the script below a threshold that's likely system specific, 5 seconds for my system, does duplicate the issue of a launched process with no tray icon to access it.

@Mi-La
Copy link

Mi-La commented Feb 6, 2024

It simply doesn't work even when I run Element manually. It works e.g. with Nheko, but Nheko is not based on Electron. Schildichat has the same problem. There are various issues across github related to the Electron + tray icon + libappindicator, but I wasn't able to fix it in a reasonable time.
I just don't understand why the issue is closed while it clearly doesn't work for more users.

@Mi-La
Copy link

Mi-La commented Feb 6, 2024

Ok .. after yet more struggling I've seen the tray icon for the first time! So for others (maybe related only to Xubuntu users):

First I've found this topic on the XFCE forum: https://forum.xfce.org/viewtopic.php?id=16436. It leads to the following bug report: https://gitlab.xfce.org/xfce/xfce4-panel/-/issues/599.

When I removed the ayatana-indicator-application which I've never installed (probably was installed automatically since it's recommended by xfce4-indicator-plugin which is recommend by ...).

Hope it helps to someone else! I'll give the element-desktop a try :-).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Electron O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Z-Platform-Specific Z-Upstream
Projects
None yet
Development

Successfully merging a pull request may close this issue.