I know that it is possible to create a tray icon for a node-webkit application like so:
我知道可以为node-webkit应用程序创建一个托盘图标,如下所示:
var tray = new gui.Tray({ title: 'Tray', icon: 'img/icon.png' });
but on Ubuntu the title won't be displayed. Is there anyway to achieve this?
但在Ubuntu上,标题将不会显示。反正有没有实现这个目标?
I would like to use the tray icon to display dynamic information, which would be really annoying to do by changing the icon itself.
我想使用托盘图标来显示动态信息,通过更改图标本身会非常烦人。
I would also be fine with using electron, if there is a way to implement it there.
如果有办法在那里实现它,我也可以使用电子。
EDIT:
编辑:
For those interested in participating: I created some issues on github for electron and for chromium.
对于那些有兴趣参与的人:我在github上为电子和铬创造了一些问题。
1 个解决方案
#1
0
This seems to be working for me with electron, see this issue
这对我来说似乎对电子有用,请看这个问题
Electron 0.37.2., Ubuntu 15.10
电子0.37.2。,Ubuntu 15.10
#1
0
This seems to be working for me with electron, see this issue
这对我来说似乎对电子有用,请看这个问题
Electron 0.37.2., Ubuntu 15.10
电子0.37.2。,Ubuntu 15.10