Triage
Confirmed against v0.0.42 (719a76ca1d) and current main @ dfbb11bdd. PortalCaptureShortcut.ts, the GNOME extension, and the setup wizard are unchanged between those two. This is a real GNOME 45–47 SnapShots setup break, not a failed extension install and not a denied permission prompt.
The capture half of the report is fine. The extension still lists those shells as supported:
| 1 | "shell-version": ["45", "46", "47", "48", "49", "50"], |
Setup step 1 (install / enable snap-shot@t3.codes) can succeed on GNOME 46. Step 2 cannot.
What the code does today
1. GNOME always registers the capture chord through org.freedesktop.portal.GlobalShortcuts.
Niri is the only Linux session that skips the portal. GNOME, KDE, and Hyprland all construct PortalCaptureShortcut (apps/desktop/src/snapShot/DesktopSnapShot.ts). That client’s first required portal call is a property read on the GlobalShortcuts interface:
| 1 | const version = await this.call({ |
| 2 | destination: this.owner, |
| 3 | path: PATH, |
| 4 | interface: "org.freedesktop.DBus.Properties", |
| 5 | member: "Get", |
| 6 | signature: "ss", |
| 7 | body: [SHORTCUTS, "version"], |
| 8 | }); |
| 9 | this.version = decodeVersion(version.body[0]).value; |
SHORTCUTS is org.freedesktop.portal.GlobalShortcuts. Host-portal Register already swallows UnknownInterface; this Get does not. When the frontend portal never exported the interface, failed() writes the D-Bus message straight into shortcutMessage. That is the filed error:
| 1 | No such interface "org.freedesktop.portal.GlobalShortcuts" |
2. GNOME’s portal backend did not implement this until 48.
xdg-desktop-portal has known the frontend API since 1.16. It only exports it when a backend implements org.freedesktop.impl.portal.GlobalShortcuts. That backend landed in GNOME 48 (xdg-desktop-portal-gnome !208). GNOME 45–47, including Ubuntu 24.04 LTS (GNOME 46 + xdg-desktop-portal-gnome 46.2), do not ship it. The reporter’s gnome.portal Interfaces= list and busctl introspect (0 GlobalShortcuts) match that.
3. Setup cannot finish, so first-time opt-in turns SnapShots back off.
GNOME shortcut readiness is shortcutRegistered || shortcutPending (captureSetupShortcutReady). After this failure both are false, so Done stays disabled. Closing an unfinished first opt-in calls captureSetupShouldDisableOnClose and writes snapShotEnabled: false. That matches “closing the dialog switches SnapShots back off.”
There is no other in-app trigger. Manual / picker capture is a different Linux backend, not the GNOME extension path.
4. A GNOME custom shortcut cannot call the extension either.
CaptureService only accepts the app’s own bus names:
| 1 | export const CLIENT_NAMES = [ |
| 2 | "com.t3tools.T3Code.SnapShot", |
| 3 | "com.t3tools.T3Code.Development.SnapShot", |
| 4 | ]; |
The app takes that name while capturing (LinuxSnapShot.captureExtension) so the extension will answer. It does not export a GNOME equivalent of Niri’s com.t3tools.SnapShot.Capture for a user keybinding to invoke. Niri already has a dedicated non-portal trigger because that compositor has no GlobalShortcuts backend (docs/internals/linux-snap-shot.md). GNOME 45–47 is the same class of gap and was not given a shell-side path.
Related, not duplicates
| Work | Why it does not close this |
|---|---|
| #8103 | Shipped SnapShots, including this portal-only GNOME shortcut. |
| #11495 | Restores a portal session after the portal restarts. Assumes the interface exists. |
| #11630 | Idempotent extension enable. Access step only. |
I did not find an existing issue for “GNOME SnapShots setup dies because GlobalShortcuts is missing.”
Workaround
None inside the app. GNOME 48+ with xdg-desktop-portal-gnome 48+ can use the current portal path. That is not available on Ubuntu 24.04 LTS (GNOME 46). Binding a GNOME custom shortcut to the extension’s Capture method will be rejected as “Only T3 Code may request a snapshot.”
Decision
Accept.
A change is not done for this issue until, on GNOME 45–47 Wayland (repro: Ubuntu 24.04 / GNOME 46, extension enabled, no org.freedesktop.portal.GlobalShortcuts):
- Settings → SnapShots setup can finish after the extension is active. The shortcut step must not die on the missing-interface error, and closing the dialog must not be the only way out.
- The chosen chord triggers a capture while T3 Code is in the background. The extension remains the capture backend.
- GNOME 48+ can keep using the existing GlobalShortcuts portal path.
Owning the chord inside the already-running extension (Main.wm.addKeybinding) and notifying the app over the existing D-Bus connection is the in-tree analog of Niri’s compositor-owned binding. The portal path can stay for shells that actually export it.