User Tools

Site Tools


gnome:extensions:create_an_extension

This is an old revision of the document!


Gnome - Extensions - Create an Extension

Distributing an Extension

Extensions are distributed as Zip files with only two required files:

  • metadata.json
  • extension.js

Installation of an extension

Extension are installed in one of two places.

For User Extensions,

~/.local/share/gnome-shell/extensions/example@blah/

For System Extensions,

/usr/share/gnome-shell/extensions/example@blah/

Complete Extension Zip File Layout

A more complete, zipped extension usually looks like this:

example@blah.zip
    locale/
        de/
          LC_MESSAGES/
              example.mo
    schemas/
        gschemas.compiled
        org.gnome.shell.extensions.example.gschema.xml
    extension.js
    metadata.json
    prefs.js
    stylesheet.css

NOTE:

  • The topic of GSettings and the schemas/ directory is explained on the Preferences page.
  • The topic of Gettext and the locale/ directory is explained on the Translations page

References

gnome/extensions/create_an_extension.1658579419.txt.gz · Last modified: 2022/07/23 12:30 by 194.32.120.105

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki