I want to create a native app that runs in all OS, and can run terminal commands

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 11:12:27

问题


Can this technology Chrome App or Google NaCl provide me with this capabilities?

Basically it should be able to run terminal commands (even by asking permission first).

And it needs to be able to edit client's filesystem.

I am interested in Chrome App or Google NaCl because they both can run in any operating system (that supports chrome).


回答1:


According to Google, Chrome is supported on some Linux, Mac OS X and Windows.

As your need is not strictly related to Chrome neither a browser, I suggest you to use (or at least have a look at) Java, which is supported on much more environments any you can safely execute terminal commands. With or without authorization.




回答2:


Chrome apps cannot execute arbitrary system processes (aka run terminal commands). There is no permission for this.

Chrome apps can communicate with others apps using message passing, sockets, etc, but you would need a special terminal application to receive these messages -- which would mean first solving the problem you are currently asking to solve!



来源:https://stackoverflow.com/questions/22352113/i-want-to-create-a-native-app-that-runs-in-all-os-and-can-run-terminal-commands

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