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

tray icon don't close for ubuntu 18.04.3 #20043

Closed
trae-op opened this issue Aug 30, 2019 · 2 comments
Closed

tray icon don't close for ubuntu 18.04.3 #20043

trae-op opened this issue Aug 30, 2019 · 2 comments
Labels

Comments

@trae-op
Copy link

trae-op commented Aug 30, 2019

I used the code
app.on('before-quit', function (evt) { tray.destroy(); });
The app closes but icon stay tray.
Also when minimizing the app closes and I try open does not displayed.
For other OS like (mac-os, win-10), everything is OK.
electron: v6.0.1

@ckerr
Copy link
Member

ckerr commented Aug 30, 2019

I cloned electron-quick-start, added a tray, added the app.on('before-quit' code listed above, and pinned the Electron version in package.json to 6.0.1:

https://gist.github.com/d797a5fec00f142f7153aec8ebaa1a83

This gist works for me on Ubuntu 19.04 using the default gnome desktop -- the tray disappears when the application exits.

@trae-op, could you test this gist on your system?

@ckerr ckerr added the blocked/need-info ❌ Cannot proceed without more information label Aug 30, 2019
@trae-op
Copy link
Author

trae-op commented Sep 2, 2019

I cloned electron-quick-start, added a tray, added the app.on('before-quit' code listed above, and pinned the Electron version in package.json to 6.0.1:

https://gist.github.com/d797a5fec00f142f7153aec8ebaa1a83

This gist works for me on Ubuntu 19.04 using the default gnome desktop -- the tray disappears when the application exits.

@trae-op, could you test this gist on your system?

I tried your version on Ubuntu 18.04.3 and it's OK, it's work. My app contained Incorrect code for event minimize and close for mainWindow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants