Skip to content
Advertisement

gnome-shell 3.34 missing ExtensionUtils.extension property

I’ve written a GNOME shell extension for gnome3.30-3.32 using:

JavaScript

Updating to 3.34 version, ExtensionUtils does not provide the 'extension' property, and I don’t know to find the documentation about it.

How can I fix the issue?

Advertisement

Answer

The code you’re looking for, the map of loaded extensions, is also a part of the ExtensionSystem module, whereas the ExtensionUtils module is mostly utilities for extension authors like GSettings and Gettext helpers.

The functions you are looking for are a part of the class ExtensionManager in 3.34+. You can get the ExtensionManager instance from the Main import:

JavaScript

Sources:

You can use the branch selector on the left of the GitLab page to select the version, or the history button on the right to view a list of changes to a given file.

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement