How to start writing Gnome Shell extensions

后端 未结 2 1440
一个人的身影
一个人的身影 2021-01-31 16:39

I have found it\'s very hard to find documentation about Gnome Shell Extensions. I found some bits on Gnome Wiki (and it\'s first-level links), but it\'s not much:

http:

2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-31 17:26

    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.

提交回复
热议问题