I think when I double click to Rambox icon at the system tray, it must be opened.
Rambox: v0.5.9
OS: Kubuntu 16.10 (KDE Plasma 5.8.5)
Arch: linux (x64)
Looks like right click on systray icon and choose "Show/Hide Window" will do the trick.
Using:
Version: 0.5.9
Platform: linux (x64)
Electron: 1.7.1
Chromium: 58.0.3029.110
Node: 7.9.0
Yes, I am using "Show/Hide Window". But, double clicking on the system tray icon makes it easier to right click on the system tray icon and select "Show / Hide Window".
We have to fix this, I will try to do it in next release.
I added another bug similar to this one, and it was commented to be a duplicate of this one. So I just closed it as a duplicate. And here is a brief copy of what I have and what I would like to see.
Rambox: 0.5.10
OS: Arch Linux
Arch: x64
KDE Plasma 5
An additional question. What is the point of making it a double click? All other system tray icons I have (or had, such as Skype and Pidgin, for example) require a single click to open/close. Is there something different Rambox is supposed to do on single clicking (now or in the future)? Because in my case it does not do anything on a single click either.
It says that you "added this to the 0.5.11 milestone on Jul 30", just got 0.5.12, and still no go. Thanks.
@dbfin special code needs to handle that on linux:
Platform limitations electron docs(https://electron.atom.io/docs/api/tray/):
The suggested method is to use 'click' to show and hide. so that it is crossplatformed. Double click will not work on linux unless there is special code for it.
Also electron documentation:
Event: ‘double-click’ macOS Windows
event Event
altKey Boolean
shiftKey Boolean
ctrlKey Boolean
metaKey Boolean
bounds Rectangle - The bounds of tray icon
Emitted when the tray icon is double clicked.
@nmat I believe 'click' instead of 'double-click' should work on any platform. And that is a part of the suggestion, to show/hide it on a single click, rather than a double click.
In that sense I do agree. Or have the option to change it in the preferences.
Got the same issue in Rambox 0.5.12 on Mint 18, Electron 1.7.5, libappindicator1 installed with apt. Left-clicking the tray icon does nothing, neither does left-double-clicking, have to right-click and select "Show/Hide Window".
Got some times the same issue on Windows 7
Like @nmat said, seems like double-click event is not supported in Linux, and click is supported only if libappindicator is not installed in the OS. I will change it to click in next release but it will depend on the user OS to work or not.
I believe this is the best way to address this issue, especially because single click is more consistent with the behavior of similar applications. But do you mean click is supported if libappindicator IS installed? Or you mean they conflict? Because this library is more or less standard. In any case, thanks for your work!
Opens on single click now (0.5.13). Thanks a lot for the quick help, that's a whole new experience!
@saenzramiro Just got v0.5.13. Indeed, when I now single click on the icon, it does open it, which is awesome. However, it does not close it back to the system tray if I click again. Not sure again what you meant by libappindicator above, but if that matters I have libappindicator-gtk3 (12.10.0-12) installed.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
An additional question. What is the point of making it a double click? All other system tray icons I have (or had, such as Skype and Pidgin, for example) require a single click to open/close. Is there something different Rambox is supposed to do on single clicking (now or in the future)? Because in my case it does not do anything on a single click either.