简体   繁体   中英

Settings as a modal for a gnome shell extension

I'm working a Gnome Shell Extension and this one will require some settings (a path to a folder, an url and checkbox (switch on/off)).

I was wondering if it was possible to make it only using javascript for Gnome 3, or something like Python was required.

The only example I found was this extension https://extensions.gnome.org/extension/135/web-application-menu/ , and it uses Python.

If it's possible to use javascript, do you have any link pointing to doc on how to do it ?

Thank you very much !

I can't find any documentation about it (at the time, the documentation about gnome-shell is pitfully absent), but it seems the code located in gnome-shell/js/ui/modalDialog.js can be very helpful.

In Fedora, it's located in

/usr/share/gnome-shell/js/uimodalDialog.js

I'll update it if I have something that is working.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM