gnome-shell/js
Florian Müllner 1c98a95974 extensionSystem: Include dir and path in data passed to extension
Extensions often need to set up additional resources from their
directory, like settings, translations or image assets.

So far extensions have used getCurrentExtension() to access the
shell's internal extension object which contains path and dir
properties. That's far from ideal, first because it requires
generating a stack to figure out the current extension, and
second because the internal object also contains state that
extensions shouldn't meddle with.

Just include those properties in the metadata we pass to the
extension constructor.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2838>
2023-07-29 15:20:20 +03:00
..
dbusServices extensions: Unify how manager is injected into shared module 2023-07-15 13:16:42 +02:00
extensions extensions: Unify how manager is injected into shared module 2023-07-15 13:16:42 +02:00
gdm animationUtils: Group together various animation helpers 2023-07-15 02:35:56 +00:00
misc extensionUtils: Split out extension convenience functions 2023-07-15 13:16:42 +02:00
portalHelper portalHelper: Port to ESM 2023-06-21 13:26:42 +02:00
ui extensionSystem: Include dir and path in data passed to extension 2023-07-29 15:20:20 +03:00
js-resources.gresource.xml status/camera: New indicator 2023-07-29 13:55:15 +03:00
meson.build extensions-app: Move Extensions app to new subproject 2020-03-27 23:33:30 +00:00
portal-resources.gresource.xml js/portal-resources: Add missing fileUtils to js path 2022-11-03 18:02:27 +00:00