Skip to content

Linux: AT-SPI text expander, xdg portal capture, terminal shortcut fixes#6

Open
Leviticus-Triage wants to merge 3 commits into
pepperonas:mainfrom
Leviticus-Triage:feat/linux-atspi-portal-expander
Open

Linux: AT-SPI text expander, xdg portal capture, terminal shortcut fixes#6
Leviticus-Triage wants to merge 3 commits into
pepperonas:mainfrom
Leviticus-Triage:feat/linux-atspi-portal-expander

Conversation

@Leviticus-Triage

Copy link
Copy Markdown
Contributor

Summary

  • AT-SPI text expander on Linux (GNOME Wayland): reads the focused text field over D-Bus instead of synthesizing Ctrl+Shift+← + Ctrl+C into the wrong XWayland window (e.g. the terminal where Inspector runs). Enables reliable abbreviation expansion in WhatsApp, browsers, gedit, etc.
  • xdg-desktop-portal integration: screenshot, OCR region capture, and color picker use ashpd on GNOME Wayland (fixes blank/failed capture when slurp/scrot are unavailable).
  • Desktop shortcut hardening: restores GNOME Terminal copy/paste to Ctrl+Shift+C/V after an earlier build wrongly moved them to Ctrl+C/V; moves Inspector shortcuts off conflicting keys; syncs expander hotkey to gsettings (Alt+1 migration for German keyboards).
  • Expander UX: clearer diagnose logging, re-show popup + event after diagnose, Linux Wayland hints in Settings, AT-SPI capture path in diagnose UI.

Test plan

  • Build on Ubuntu GNOME Wayland: pnpm build:linux:deb
  • Install .deb, confirm startup log: AT-SPI session accessibility enabled
  • Type mfg in gedit or Firefox (not Terminal), press Alt+1 → expands to snippet body; log shows AT-SPI: read word before cursor: "mfg"
  • Settings → Text expander → Diagnose → capture path shows Linux AT-SPI
  • Ctrl+Shift+S/O/C work via portal on GNOME Wayland
  • GNOME Terminal copy/paste remain Ctrl+Shift+C/V after app restart
  • cargo test -p inspector-rust-core --lib passes (243 tests)

Made with Cursor

Leviticus-Triage and others added 3 commits May 25, 2026 14:04
…hortcut fixes

Wayland GNOME builds now read the focused field over AT-SPI instead of
synthesizing clipboard keystrokes into the wrong window. Adds portal-based
screenshot/OCR/color capture, restores Terminal Ctrl+Shift+C/V, and syncs
the expander hotkey through gsettings with clearer diagnose logging.

Co-authored-by: Cursor <cursoragent@cursor.com>
Aligns CLI dispatch and send_backspaces loop with v0.33.0 expander API.

Co-authored-by: Cursor <cursoragent@cursor.com>
…tEditor

Move inline Row/ToolButton components to module scope and avoid reading
canvasRef.current during render so CI eslint passes.

Co-authored-by: Cursor <cursoragent@cursor.com>
@Leviticus-Triage Leviticus-Triage force-pushed the feat/linux-atspi-portal-expander branch from b394b76 to 06dc73a Compare May 25, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant