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

Added workaround for trayicon not working under Linux #40

Merged
merged 2 commits into from
Apr 9, 2017

Conversation

rawzone
Copy link

@rawzone rawzone commented Apr 8, 2017

This pull request fixes #30.

I added a workaround to the tray icon not working under Linux.

Did some searching and it seems that electrons tray icon under Linux doesn't work with click events.

Source: https://github.com/electron/electron/blob/master/docs/api/tray.md - See the Platform limitations section.

So as a workaround i implemented a context menu on the tray icon that allows to hide / show the main windows and quit the program.

I also made it so when closing the windows ctrl+w under Linux it only hides the window instead of nulling it. This allows to quick "remove" the window and restore it from the tray icon.

I have only tested this under Linux with i3wm as my window manager.

@bcalik bcalik merged commit 48d20f0 into bcalik:master Apr 9, 2017
@rawzone rawzone deleted the linux-tray-icon branch April 10, 2017 16:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tray icon doesn't restore app's window
2 participants