我可以使用其他语言(除JavaScript以外)创建Gnome shell Extensions吗?

发布于 2025-01-17 21:24:12 字数 141 浏览 5 评论 0原文

我正在创建一个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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

星軌x 2025-01-24 21:24:12

简短的回答是否定的。

您不能使用 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文