gnome-shell/js/ui
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
..
components dependencies: Migrate to ES module and organize dependencies 2023-07-15 02:35:56 +00:00
status status/camera: New indicator 2023-07-29 13:55:15 +03:00
accessDialog.js js: Fix linting errors from line shifts 2023-06-21 04:50:33 -07:00
altTab.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
animation.js animations: Stop syncing size manually 2023-07-05 10:36:14 +00:00
appDisplay.js js: Fix linting errors from line shifts 2023-06-21 04:50:33 -07:00
appFavorites.js appFavorite: Add missing .desktop extension for simplescan 2023-03-29 21:51:04 +00:00
appMenu.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
audioDeviceSelection.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
background.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
backgroundMenu.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
barLevel.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
boxpointer.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
calendar.js animationUtils: Group together various animation helpers 2023-07-15 02:35:56 +00:00
checkBox.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
closeDialog.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
ctrlAltTab.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
dash.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
dateMenu.js environment: Remove toLocaleFormat and add dateUtils for date formatting 2023-07-07 18:58:34 -07:00
dialog.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
dnd.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
edgeDragAction.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
endSessionDialog.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
environment.js environment: Port environment.js to be an ES module 2023-07-15 02:35:56 +00:00
extensionDownloader.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
extensionSystem.js extensionSystem: Include dir and path in data passed to extension 2023-07-29 15:20:20 +03:00
focusCaretTracker.js Adopt EventEmitter class instead of injecting Signal methods 2022-07-04 18:30:49 -04:00
grabHelper.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
ibusCandidatePopup.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
iconGrid.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
inhibitShortcutsDialog.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
init.js environment: Port environment.js to be an ES module 2023-07-15 02:35:56 +00:00
kbdA11yDialog.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
keyboard.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
layout.js layout: Add catch when asynchronously setting up the startup animation 2023-07-15 02:35:56 +00:00
lightbox.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
locatePointer.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
lookingGlass.js lookingGlass: Evaluate command asynchronously 2023-07-14 12:36:53 +00:00
magnifier.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
main.js scripting: Convert to ES module and migrate tests 2023-07-15 02:35:56 +00:00
messageList.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
messageTray.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
modalDialog.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
mpris.js js: Fix linting errors from line shifts 2023-06-21 04:50:33 -07:00
notificationDaemon.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
osdMonitorLabeler.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
osdWindow.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
overview.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
overviewControls.js js: Fix linting errors from line shifts 2023-06-21 04:50:33 -07:00
padOsd.js js: Fix linting errors from line shifts 2023-06-21 04:50:33 -07:00
pageIndicators.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
panel.js status/camera: New indicator 2023-07-29 13:55:15 +03:00
panelMenu.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
pointerA11yTimeout.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
pointerWatcher.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
popupMenu.js js: Fix linting errors from line shifts 2023-06-21 04:50:33 -07:00
quickSettings.js a11y: Don't create a parent loop for quick settings sliders 2023-07-13 18:15:16 +02:00
remoteSearch.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
ripples.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
runDialog.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
screenShield.js animationUtils: Group together various animation helpers 2023-07-15 02:35:56 +00:00
screenshot.js js: Fix linting errors from line shifts 2023-06-21 04:50:33 -07:00
scripting.js scripting: Convert to ES module and migrate tests 2023-07-15 02:35:56 +00:00
search.js animationUtils: Group together various animation helpers 2023-07-15 02:35:56 +00:00
searchController.js js: Fix linting errors from line shifts 2023-06-21 04:50:33 -07:00
sessionMode.js main: Consider color-scheme setting for default stylesheet 2023-05-25 17:10:53 +02:00
shellDBus.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
shellEntry.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
shellMountOperation.js animationUtils: Group together various animation helpers 2023-07-15 02:35:56 +00:00
slider.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
swipeTracker.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
switcherPopup.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
switchMonitor.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
unlockDialog.js environment: Remove toLocaleFormat and add dateUtils for date formatting 2023-07-07 18:58:34 -07:00
userWidget.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
welcomeDialog.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
windowAttentionHandler.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
windowManager.js windowManager: Add shortcut for toggling quick settings 2023-06-21 18:11:05 +00:00
windowMenu.js js: Fix linting errors from line shifts 2023-06-21 04:50:33 -07:00
windowPreview.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
workspace.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
workspaceAnimation.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
workspacesView.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
workspaceSwitcherPopup.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
workspaceThumbnail.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00
xdndHandler.js js: Split gi imports to be on new lines to prepare for ES modules 2023-06-21 04:50:33 -07:00