# SnapShots GNOME 46 desktop proof

Real Electron app, Ubuntu 24.04, GNOME Shell 46.0 / Mutter 46.2, Wayland, 1600x900, light theme, software rendering. A nested GNOME compositor runs on Xvfb so the entire desktop can be recorded. The real GNOME Screenshot portal is running; introspection confirms GlobalShortcuts is absent. No portal or extension method is mocked. No agent turn runs.

The driver starts two complete isolated D-Bus/GNOME sessions per side. Each side has its own fresh XDG runtime/data/config directories and T3 home. It skips all onboarding history imports. SnapShots starts disabled, the bundled extension is installed through Settings, the first session ends, and the second session discovers and enables the extension through Settings. SnapShots starts disabled again in the second session. Both first-time wizards show **Finish later**.

## Reproduce

Prerequisites: Ubuntu 24.04 with gnome-shell, Xvfb, xdotool, dbus-run-session, gnome-keyring-daemon, xdg-desktop-portal, xdg-desktop-portal-gnome, xdg-desktop-portal-gtk, zenity, ffmpeg, Python 3, libsecret-1-dev, and the supplied headless-desktop wrapper. No running desktop or hand-installed extension is needed.

Create one checkout at each commit:

- Base: [362ef9a88a](https://github.com/pingdotgg/t3code/commit/362ef9a88a18b7f692864409c35c15cc28d7a09e)
- Head: [58e3c89000](https://github.com/pingdotgg/t3code/commit/58e3c890003cb6bca5a3ce7195cef4181c4ebbca)

In **each** checkout run:

```sh
vp i
(cd apps/desktop && node node_modules/electron/install.js)
vp run build:desktop
```

From an empty output parent directory, run the same `driver.mjs` sequentially (each output directory must not exist):

```sh
headless-desktop node driver.mjs "$BASE_CHECKOUT" "$OUTPUT_PARENT/before" before
headless-desktop node driver.mjs "$HEAD_CHECKOUT" "$OUTPUT_PARENT/after" after
```

The driver handles installation, first-time setup, session restart, UI actions, screenshots, recording, and shutdown. `steps.txt` traces every action. It waits for two identical desktop PNGs at least 500 ms apart before retaining a still. The output includes a continuous recording beginning before enabling SnapShots and ending after the background shortcut attempt. The short blank interval is the actual end and restart of the isolated GNOME session.

The shortcut is recorded through the real Electron renderer. The background chord is injected with XTest into the focused nested compositor window, with the external synthetic Zenity window focused inside GNOME. The driver obtains that window's real X11 ID with xwininfo. This is compositor input, not a call to the capture or shortcut extension service.

Privacy: the model picker is hidden with a CSS-only redaction before opening the draft. Run the supplied media redaction script before sharing, to cover the environment name in the right-side panel. Neither redaction changes capture, shortcut, or settings behavior. Only synthetic draft and target-window text are used.

## Interpretation

The same actions save Ctrl+Shift+Y on both commits. Base displays the missing GlobalShortcuts interface and disables Done. Closing that unfinished first-time wizard turns SnapShots off. Head finishes setup and displays Ready to capture. The subsequent focused-window shortcut attempt is compared in the desktop recording and final draft stills.

The sidebar empty-state text disappears when the synthetic draft becomes nonempty on both commits, before the capture attempt. This observation is independent of whether a snapshot attaches.

GNOME 45/47, a GlobalShortcuts-capable portal, and portal permission denial are outside this environment's runtime coverage.

AI-assisted; verified with the tests and tools listed above.
