javascript node.js 应用程序中的系统托盘图标
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12979727/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
System tray icon in node.js application
提问by ciembor
This is what I need in my node.js application:
这是我在 node.js 应用程序中需要的:
- System tray icon
- changing this icon during application work
- menu after clicking on icon
- creation of windows with fields for login / password and confirmation buttons
- 系统托盘图标
- 在应用程序工作期间更改此图标
- 点击图标后的菜单
- 创建带有登录/密码和确认按钮字段的窗口
This is what I found:
这是我发现的:
- https://github.com/appjs/appjs- It looks good, but there is still no system tray support (it looks it will be done in some time)
- https://github.com/zcbenz/node-gui- It looks there is support for all I need, but I can't install it (I think this project is dead...)
- https://github.com/appjs/appjs- 看起来不错,但仍然没有系统托盘支持(看起来会在一段时间内完成)
- https://github.com/zcbenz/node-gui- 看起来有我需要的所有支持,但我无法安装它(我认为这个项目已经死了......)
Do you have any recommendations? I need something reliable, easy to installand as cross-systemas possible.
你有什么建议?我需要一些可靠、易于安装且尽可能跨系统的东西。
//edit
//编辑
Since 6th November Appjs has basic tray icon support.
自 11 月 6 日起,Appjs 具有基本的托盘图标支持。
回答by Ewald
For anyone else that lands up here, check out https://github.com/rogerwang/node-webkit- a great package that allows you to create desktop applications using your favourite tools like JavaScript, with support for native shell access, tray icons and a lot more.
对于登陆这里的其他人,请查看https://github.com/rogerwang/node-webkit- 一个很棒的包,它允许您使用您最喜欢的工具(如 JavaScript)创建桌面应用程序,并支持本机 shell 访问、托盘图标还有很多。
Update: The app has moved to NWjs.iobut it's the same brilliant concept.
更新:该应用程序已移至NWjs.io,但它是同样出色的概念。
回答by Naman Goel
Take a look at Node-QT (https://github.com/arturadib/node-qt) maybe that can help.
看看 Node-QT ( https://github.com/arturadib/node-qt) 也许可以提供帮助。