Skip to content

Pretty v0.2.4

Choose a tag to compare

@mappingAu mappingAu released this 20 Nov 14:42
· 1 commit to main since this release

Pretty v0.2.4

Hardware-accelerated, kitty-compatible terminal emulator. Stable patch
release
, not a pre-release.

Tag: v0.2.4 → the release commit on main.
Native CI run: 44857695871 — Linux, Windows and macOS.

This 0.2.4 release was updated in place (no new release) to add the new-tab and
foreground-title fixes below.

Corrected fix: .desktop entries with Terminal=true

The reported desktop entry also contains Terminal=true. That changes how the
desktop environment launches it: KDE starts the default terminal, not the
Exec program, with:

TERMINAL -e <Exec...>

On the reporter's host the default terminal is Pretty itself, so the actual
argv is /usr/bin/pretty -e <Exec...>.

Pretty already accepted -e, but consumed only one argument and then kept
parsing the command's flags as its own options. For example,
pretty -e sh -c '...' ran sh and rejected -c as an unknown Pretty option
(exit code 1); Exec=pretty launched a nested second Pretty window after the
startup-feedback delay.

0.2.4 fixes the launcher protocol:

  • -e and historical -x now consume the whole remaining command line,
    like terminal emulators, and stop Pretty option parsing.
  • Multiple argv elements are shell-quoted; a single --command string keeps
    the existing shell-string behavior.
  • If the command is Pretty itself (same executable path, or same file name for
    a PATH lookup), the nested self-launch is ignored. The outer window is the
    terminal the desktop requested, and remaining arguments such as --title or
    --config are still applied to it.
  • This also makes Terminal=true with Exec=sh -c '...', Exec=htop, or
    Exec=pretty --config ... behave correctly.

New tabs no longer repeat the launcher command

A -e/-x argv now belongs to the window that the desktop launched. Opening
a new tab or split uses the configured login shell instead of running the same
command again, matching Konsole. The initial pane still runs the exact argv
(no shell wrapper), so -c and other program flags are preserved. --command
keeps its existing shell-string behavior.

GLES on Wayland is announced

GLES cannot present in a native Wayland window on this driver, so Pretty runs
the window through X11/XWayland. That is no longer silent:

  • At startup, a configured GLES backend on a Wayland session shows a
    dismissible notice naming the session (Wayland) and the actual window
    (X11 (XWayland)), with the IME/scaling/blur consequences. Vulkan and auto
    show nothing.
  • In Settings → Rendering, selecting GLES on a Wayland session asks for
    confirmation (Use GLES anyway / Cancel); cancel keeps the previous value.
  • A backend that cannot start at all (rewritten to auto, e.g. metal on
    Linux) now says which backend was requested instead of switching silently.

Window/tab title follows the running program

The title was previously only updated by OSC 0/2 or the spawn-time shell name,
so a shell that never emits a title stayed “bash” even while htop or vim was
running. Pane titles now sample the PTY foreground process group with
tcgetpgrp() and read /proc/<pgid>/comm on Linux (other targets keep the
fallback). Sampling runs on the existing blink tick at most every 500 ms and
does not repaint an idle window. An explicit OSC title, and --title, win over
the sampled name; clearing the OSC title returns to it. New tabs start from
the login shell name; -e htop starts from htop.

Verification

# Exact launcher shape observed from KDE:
./target/debug/pretty --title SelfNestedTest \
  -e ./target/debug/pretty --title Ignored --config /tmp/pretty-test.toml
# log: terminal launcher asked Pretty to run itself; ignoring nested launch
# one Pretty process, title/settings still applied

./target/debug/pretty --title ShTest -e sh -c 'sleep 4'
# child process: sleep 4 — -c reached the command, no exit 1
cargo test --workspace --locked
# 55 app + 61 core unit + 9 audit + 2 PTY (+1 ignored) + 4 QA + 15 renderer
# = 146 passed, 1 ignored, 0 failed

New CLI tests cover -e, -x, multi-argument commands, missing values, and
self-launch detection; app tests cover new-tab command selection and program
titles. Manual smoke test: pretty -e sh -c 'sleep 6' showed
sleep — Pretty while the child ran, then returned to the shell title. The
native-Wayland drag-and-drop bridge is unchanged.
Full evidence:
docs/TEST-REPORT-V0.2.4.md.

Issue #1 (Windows GLES) — next minor release

Issue #1 is not fixed in
0.2.4.
GLES remains disabled on Windows; the wgpu/ANGLE investigation is
deferred to the next minor release (0.3.0). Windows keeps Vulkan + Direct3D
12 in 0.2.4.

Assets

Asset Origin
pretty-0.2.4-linux-x86_64.tar.gz CI Linux release tarball
pretty-terminal_0.2.4_amd64.deb local release build
pretty-terminal-0.2.4-1.x86_64.rpm local release build, distribution-neutral RPM (no Fedora dist tag)
pretty-0.2.4-windows-x86_64.zip native CI (Vulkan + DX12)
pretty-0.2.4-macos-arm64.app.tar.gz native CI (Metal + Vulkan)
pretty-0.2.4-macos-arm64.tar.gz native CI (macOS CLI)
pretty-0.2.4-source.tar.gz git archive of the tagged tree
print-info-*.txt backend/GPU diagnostics from the release and CI builds
SHA256SUMS checksums for every asset above

Upgrade

sudo dnf install ./pretty-terminal-0.2.4-1.x86_64.rpm
sudo apt install ./pretty-terminal_0.2.4_amd64.deb

or use the relocatable tarball / Windows zip / macOS app above.

Known limitations

The exact argv shape KDE produces for Terminal=true was tested directly,
including self-exec and sh -c; the host's default-terminal setting was not
left modified. Windows/macOS GUI runtime remains CI-built/tested but not run on
physical hardware. The Wayland drag automation limitation is unchanged. See
docs/KNOWN-ISSUES.md.