问题描述
我想用一个简单的WebExtensions插件运行一个命令(在磁盘上的exe文件),并且可能会得到它的stdout。有没有办法在WebExtensions中这样做,因为旧的API已被弃用?
解决方案我想用一个简单的WebExtensions插件运行一个命令(在磁盘上的exe文件),并且可能会得到它的stdout。有没有办法在WebExtensions中这样做,因为旧的API已被弃用?
解决方案这个博客文章提到 - a href =https://blog.mozilla.org/addons/2016/06/09/webextensions-for-firefox-49/ =nofollow> https://blog.mozilla.org/addons/2016 / 06/09 / webextensions-for-firefox-49 /
阅读 runtime.connectNative
。他们说:
I'd like to run a command (exe somewhere on disk) with arguments in a simple WebExtensions addon, and possibly get its stdout. Is there a way to do so in WebExtensions, since the older APIs are being deprecated?
This blog post mentions how - https://blog.mozilla.org/addons/2016/06/09/webextensions-for-firefox-49/
Read the section runtime.connectNative
. They say:
这篇关于如何在Firefox Webextensions中执行命令行程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!