System tray icon in node.js application

时间秒杀一切 提交于 2020-05-24 21:22:25

问题


This is what I need in my node.js application:

  • 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...)

Do you have any recommendations? I need something reliable, easy to install and as cross-system as possible.

//edit

Since 6th November Appjs has basic tray icon support.


回答1:


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.

Update: The app has moved to NWjs.io but it's the same brilliant concept.




回答2:


Take a look at Node-QT (https://github.com/arturadib/node-qt) maybe that can help.



来源:https://stackoverflow.com/questions/12979727/system-tray-icon-in-node-js-application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!