How to start writing Gnome Shell extensions

社会主义新天地 提交于 2019-12-02 17:06:58

GNOME Shell uses GJS, not Seed. There are some differences among both of them, and it might explain why you are having problems.

With GOBject Introspection you can read the documentation for the original library and adapt the signature of every method/function to the language you are using.

In your particular case, for files, networking, etc. you might want to check GIO. You can check the Platform Overview to check what else is available. You also can check some examples (not extensions, though) in JavaScript.

At last but not least, very soon a website with extension will be launched.

Well, supposedly, with Gnome3, you have a pretty uniform API across various programming languages, that is generated from the same GIR files. So you should (at least in theory) be able to retrieve all the API - I hope with documentation - from the GObject Introspection. And the other way round, you should be able to transform example code from another language into JavaScript for this API easily.

Theoretically. I avoid JavaScript where possible, developing a desktop application in JavaScript is the last I would do.

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