我可以使用其他语言(除JavaScript以外)创建Gnome shell Extensions吗?
我正在创建一个Gnome shell扩展名,并想使用C ++/Golang等语言而不是JavaScript来创建它。如果我可以以某种方式在我的extension.js
中使用C ++/GO可执行,也可以接受。请告诉我这是否可能,如果是的话?
I am creating a GNOME Shell Extension and want to use languages like C++/Golang rather than JavaScript to create it. It is also acceptable if I can somehow call/use the C++/go executable in my extension.js
. Please tell me if this is even possible and if yes how?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
简短的回答是否定的。
您不能使用 GNOME Shell 扩展来传送二进制文件,因为它们依赖于体系结构并且无法正确审查。您可以使用 GObject-Introspection 编写一个库并单独发布,但仍然如此出于同样的原因,没有捆绑在扩展中。
如果您想发布带有 GNOME Shell 扩展的二进制文件,那么您很有可能只需要编写一个应用程序。
The short answer is no.
You can't ship binaries with a GNOME Shell extension, because they are architecture dependent and can't be properly reviewed. You could write a library with GObject-Introspection and ship that separately, but still not bundled in an extension for the same reason.
If you're tempted to ship a binary with a GNOME Shell extension, there's a good chance you should just be writing an application.