*<https://spectre.sebastiano.dev|Spectre> 0.8.0 an...
# feed
s
Spectre 0.8.0 and 0.9.0 are out! If you don’t know — Spectre drives real Compose Desktop UIs: semantics, real input, and screen recording. These add one-time Wayland approval and native window capture on GNOME, plus fixes for synthetic input, screenshots, and recording. Details in thread. And if you’re wondering why two releases in one go… I strengthened my release QA process quite a bit after the first one shipped :D Release notes: github.com/rock3r/spectre/releases
Main changes: • Wayland approval: run
spectre permissions
when you’re at the machine. Spectre stores the grant for later captures, recordings, and real input without another dialog. Handy for CI and afk testing. Without a grant, JUnit fails immediately and tells you what to run. • Window capture on GNOME Wayland: stills, visual-idle checks, and recordings capture just the window, even when covered. Other desktops can use a screen region or xvfb/X11. Untitled
JWindow
popups aren’t capturable on Wayland yet. • Popups and duplicate titles: screenshots and visual-idle checks now handle untitled popups and plain AWT windows on macOS, Windows, and Linux X11 instead of potentially stalling. Duplicate titles resolve to the right window on Windows/X11. • Capture fixes: faster stills on macOS/Windows; blinking carets and open popups no longer block visual settling. Windows recordings now preserve real time and play upright. (yes I know) • Synthetic input fixes: input follows AWT modality and focus rules, including a modal-dialog deadlock fix.
typeText
and
pressKey
no longer wait for OS focus — no more focus stealing in injected mode! • No more accidental desktop screenshots: atomic stills and attached node screenshots fail clearly when native window capture isn’t possible, rather than silently falling back to a desktop crop. Also: more node state, fixes for IntelliJ attach before Compose loads and after detach, richer `tree`/`find` output,
spectre guide
, and
--version
.
a
oh this is very interesting to me, going to see is I can set this up with my app
❤️ 1
o
Wanted to try Spectre with TestBalloon on Ubuntu 24.04. Seems like
spectre permissions request
requires a newer version of
xdg-desktop-portal
than 1.18.4, which would require a OS upgrade. Or is there a way around it?
s
I only test on Ubuntu 26.04 for Linux, I don’t know. I can have a check but all my Linux machines are 26.04
o
On 24.04 with
xdg-desktop-portal
1.18.4,
spectre permissions request
produced
Copy code
"No such interface "org.freedesktop.host.portal.Registry" on object at path /org/freedesktop/portal/desktop"
Unfortunately, the GitHub repo started at 1.20.0 and
org.freedesktop.host.portal.Registry
seems to be present since 1.20.0 at least.
s
Thanks, that’s exactly the error my agent reproduced using Ubuntu 24.04’s portal package when I asked. Registry is a newer, optional API for Spectre to use; Spectre should fall back when it’s unavailable, but a bug in the error handling prevents that. It has a small fix prepared and tested, so upgrading Ubuntu shouldn’t be necessary once it releases. I can’t promise it will happen soon tho because I am nearing Maven Central quotas 😞
o
I could try with a local build of Spectre. Regarding MC quotas, I feel you. I’ve been there with TestBalloon due to backports for multiple compiler versions, but could consolidate that by introducing a multi-version compiler plugin architecture. On top of that, I got an exemption from Sonatype for the quotas, so luckily, I’m fine now. 😅
s
I have an open source exemption but that's already filled with 2/3 releases in a month (I have 4 this month: Maradona, 2x Spectre, Indexino) so i need to pace it XD
o
Ever thought of splitting projects across multiple namespaces or pushing Sonatype into making quotas apply per project instead?
s
No, not really