-
Notifications
You must be signed in to change notification settings - Fork 15.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
API tray.destroy is not working #17622
Comments
@MarshallOfSound can you please review this ? |
my work around:Spawn a new process to show tray |
KDE and GNOME have the same ploblem that caused by the desktop itself,so the only thing we can do is to work around. |
@chfanghr okay got you point, thanks for you help |
i tried alt + f2 -> r, it solve this on temporary basis |
will,brilliant,i will have a try
|
@chfanghr |
you should try kde,at least it doesn't crash |
Instructions here.Also ,you can use kubuntu image directly. |
And you may have to replace your login manager with sddm. |
I don't know much about GtkStatusicon, if you know something then tell me about it(how to install) |
Oh sorry .GtkStatusion is a part of gnome so you don't have to install it Manually . As for libappindicator1 ,you can install it with apt .But actually it doesn't solve this issue. |
Thanks, okay it cleared my concept |
If you want a better Tray experience,you may want to try qt.But I wonder how they achieve it. |
Hmm Zulip-desktop is based on electron a single person can't change the codebase 😄 |
Using KDE's native API sovle this issue,but that's annoying.... |
can you provide a link for KDE native API |
But now I have to manage my codebase in five languages...GOD DAME |
that's really annoying 😆 |
Perhaps you can rewrite the application with PWA and wasm.Though you need chrome ,the user experience will be better on every platforms. |
@chfanghr i had exams so sorry for late responding, I think it would be a bad option for me to dive deeper into the OS because I do not know much about them, I think we should see how other apps(like skype etc based on electron) are solving this issue because it is a problem with electron and linux |
ok,did you make any progress? |
No progress, Skype don't interfere with tray icon, though I saw some issue on tray icon is not showing up but they didn't solve the problem |
Just bumped from electron
and this bug started to appear. The destroy was working correctly before that. |
Tray.destroy() is not working on Linux due to: electron/electron#17622 Which causes tray icon to duplicate on every init.
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
same on v17.4.11. haven't tried the latest v21 though. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Still reproducable on v17.4.11. Hope someoe who encounters this issue could help us test the latest version. I used a deprecated API and cannot upgrade right now. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
Not stale, able to repro on electron v20.3.8 in Ubuntu 22.04 Gnome. Would like to update to latest stable version of electron to confirm that this is still a problem. |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment! |
This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue. |
This was closed due to inactivity, but It seems this is still not resolved. |
Preflight Checklist
Issue Details
Expected Behavior
Observed in Zulip desktop app
tray.destroy()
api should destroy tray icon in panelshow app tray icon
option in general setting, it should destroy and create tray icon on toggleActual Behavior
Previous tray icon are not destroy on toggle and new icon created i.e
tray.destroy
API is not workingTo Reproduce
you can find code in
zulip-electron/app/renderer/js/tray.js
Screenshots
The text was updated successfully, but these errors were encountered: