# Stage the Mutter geometry-helper GNOME Shell extension (guest/mutter-geometry-helper) into
# the system extensions dir. It exposes the focused window's true global origin over a private
# D-Bus name for the AT-SPI agent (AT-SPI loses the window origin on Wayland) — enabled via the
# dconf default in files/etc/dconf/db/local.d/00-nucleic. Arch-independent (JS + metadata).
stage() {
  local dest="$1"
  local ext="$dest/usr/share/gnome-shell/extensions/nucleic-geometry@nucleic.xyz"
  local src="$OS_DIR/../guest/mutter-geometry-helper"
  install -D -m 0644 "$src/metadata.json" "$ext/metadata.json"
  install -D -m 0644 "$src/extension.js" "$ext/extension.js"
}
