Can I execute a local program from a Chrome Plugin?

ε祈祈猫儿з 提交于 2019-12-12 00:33:27

问题


I want to make a Chrome plugin that checks if mencoder.exe is present on the clients system. And if so, convert files with it.

Is that possible?

If not, can I make something like that in a Java applet or something? I'm open to suggestions!


回答1:


It is possible with java applets, but you also need to implement a permission policy into the program. Here are two tutorials you should take a look at:

Java applets:

http://docs.oracle.com/javase/tutorial/deployment/applet/

Implementing Policy:

http://docs.oracle.com/javase/tutorial/security/userperm/policy.html




回答2:


You can do it using java applet (like Laerte said), but implementing a policy is not the only option. May be it is easier digital signing (info) your applet with respective attributes in Manifest.mf (here and here) and wrapping your SO access source lines with this. In this way, you can distribute your applet without modifying client systems.



来源:https://stackoverflow.com/questions/19135577/can-i-execute-a-local-program-from-a-chrome-plugin

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