Repository navigation
Conversation
146db70 to
024feed
Compare
|
Rebased onto current Ready for review. The E2E evidence is in the PR description below; before/after scene PNGs ( |
024feed to
ecc44af
Compare
41877c1 to
82ff71f
Compare
|
Conflict fixed again (rebased onto current Since the last update this PR grew two follow-ups:
Also covered #19 (layer-shell path verified on sway v4 — no code gap found) and #20 (toplevel fallback implemented; nested-Mutter verification in the comment there), while #23 stays backlog (no GPU/DMA-BUF hardware here). |
05c39b7 to
bea43af
Compare
….freedesktop.Application; keyboard symbols via FreeSerif Icons (anomalyco#21 follow-up): icon_file read only icons/hicolor, so theme-installed icons (Humanity apps/48, Adwaita sets) resolved to nothing. Now reads the XDG_CURRENT_DESKTOP theme (Adwaita/Humanity/hicolor fallback), follows Inherits breadth-first, matches directories verbatim from each index.theme. Temp-theme + Inherits-chain + real-system (Humanity-only SVG resolves and rasterizes 96x96) tests green. Single instance (anomalyco#22): App::single_instance + App::on_open. First launch owns rune.<id> on the session bus (dedicated serve thread; a leaked connection alone never dispatches); second launch forwards URIs via Open (or bare Activate) and exits 0. Live bus round-trip tests green. Keyboard symbols (anomalyco#2): FreeSerif between DejaVu Sans and Noto in SYMBOL_FAMILIES/SYMBOL_FONT_FILES, covering U+238B. plex unit gate green.
layer-shell binds (verified on nested Mutter: picker reports nonactivating_keys Unsupported instead of Unavailable), with degraded capabilities reported. Verified: qa-gnome has no zwlr_layer_shell_v1 and overlay-lab takes the window path. into try_create and an Open is queued behind on_open's update, so the owner's window shows activated as a relaunch would.
bea43af to
836fbbb
Compare
|
thanks for this. rune is agent-driven, so we don't take pull requests. if you'd like a change or a bug fixed, have your agent open an issue describing it (https://github.com/anomalyco/rune/issues) and our agents will pick it up. |
… and edit cost (#812) - Fields step words by UAX #29 (paths, brackets, Persian ZWNJ words), and a word forward stops at the next word's start in right-to-left text too. - Ctrl+Left Shift and Ctrl+Right Shift set a field's direction on Windows and Linux; a shortcut with them never does. - Left and Right swap in right-to-left focus groups, sliders and Kit trees; right-to-left table rows copy as tab-separated cells. - Tab titles fade at their own end; Luau UI text reads the way its words do. - In a right-to-left app the Windows caption buttons sit at the top-left, tooltips read from the right, and inline icons keep their gap beside their word. - Rich HTML copies say each block's direction; a right-to-left locale's missing message is the English one, isolated. - A keystroke in a long plain draft keys only the paragraphs it touched; spell checking hashes each line once. - Tooling: --tree lists a focused field's selection; scripts press single modifier keys.
In ASCII every position is a grapheme boundary but the one between CR and LF (UAX anomalyco#29 GB3 to GB5, GB999), so analysis works them out from the bytes rather than running the segmenter over every new string. Checked against the segmenter on every ASCII string of every offscreen scene of an app built on it (6,496 strings): the same boundaries. parley_engine 0.13 does the same work, so the change stays in vendor/parley_engine.patch on a bump. Co-Authored-By: Claude Opus 5.5 <[email protected]>
In ASCII every position is a grapheme boundary but the one between CR and LF (UAX anomalyco#29 GB3 to GB5, GB999), so analysis works them out from the bytes rather than running the segmenter over every new string. Checked against the segmenter on every ASCII string of every offscreen scene of an app built on it (6,496 strings): the same boundaries. parley_engine 0.13 does the same work, so the change stays in vendor/parley_engine.patch on a bump. Co-Authored-By: Claude Opus 5.5 <[email protected]>
In ASCII every position is a grapheme boundary but the one between CR and LF (UAX anomalyco#29 GB3 to GB5, GB999), so analysis works them out from the bytes rather than running the segmenter over every new string. Checked against the segmenter on every ASCII string of every offscreen scene of an app built on it (6,496 strings): the same boundaries. parley_engine 0.13 does the same work, so the change stays in vendor/parley_engine.patch on a bump. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Fixes #2, fixes #20, fixes #21, fixes #22.
Why one PR
These four issues are one theme: Rune on stock Ubuntu where the happy path is missing — a glyph the system font lacks, icon themes outside hicolor, no session-bus name, no layer-shell. Each fix is small, Linux-only, and verified by the same harness on the same Ubuntu 24.04 image. One PR = one review, one CI run, one rebase against a fast-moving
dev.If you want it split, it separates cleanly by commit with no code moves between them:
35329d7— FreeSerif fallback (Linux: keyboard-symbol fallback leaves U+238B (⎋) as tofu — plex_keyboard_symbols_use_real_glyphs fails on stock Ubuntu #2) + session-theme/Inherits icon lookup (App icons off macOS: freedesktop icon-theme lookup and SVG rasterising #21) + single-instance core (Linux: open-URL and reopen hook via org.freedesktop.Application #22:instance.rs,App::single_instance/on_open,window.rsdrain)4c58715— GNOME toplevel fallback (Wayland: toplevel fallback for overlays without layer-shell (GNOME) #20) + token/show follow-through for Linux: open-URL and reopen hook via org.freedesktop.Application #22a18b649— Wayland backend pin (one-liner, folds into either)Cherry-pick any of them onto
devindependently.E2E + manual QA
All below run on the same stock Ubuntu 24.04 image (Lavapipe via
VK_ICD_FILENAMES, Xvfb:99windowed, sway 1.9 wlroots for layer-shell, nested mutter-46 for the GNOME case). Repro scripts live at/tmp/opencode/proof/:issue2_e2e.sh,icon_e2e.sh,instance_e2e.sh(plussway_concept.sh/instance_manual.shfor the two hand-driven flows).#2 — U+238B tofu (FreeSerif fallback),
text.rs+help.rstest gatecargo test -p rune --lib text::tests::plex_keyboard_symbols_use_real_glyphsgreen; keybind scene renders ⎋ instead of tofu with no other glyph moves.⎋nodes (U+238B nodes: 6). Before/after PNG (symbols_before.pngvskeybind_windowed.png, side-by-side insymbols_before_after.png): the Plex Mono rows went from tofu boxes to real ⎋; Inter rows and all other symbols byte-identical by design (Parley keeps the first covering font).scrot -a 0,0,1100,640 keybind_windowed.png— a live window, not just headless.xwininfoconfirmsrune-kit gallery 1100x640+0+0.settings --scene dark --snap,settings --script toggle.json --frames 120 --trace(motion-audit: 0 findings),settings --script slider.json(0 findings), pluskit-gallerycombobox trace (only pre-existing scroll-presence notices, unrelated).#21 — session-theme / Inherits icon lookup,
image.rs48x48@2= 96px),Inherits-chain, and real-system probe (Humanity-only SVG resolves and rasterizes 96×96 throughapp_icon_rgba, visible pixels asserted) all green.resvg+zbuswere already core deps, so no new dependency and no feature flag.Inherits+ verbatimindex.themedirectory matching. Partial in the sense that only the missing half is new.#22 — single instance,
instance.rs+App::single_instance/App::on_openrune.<app_id>; second launch forwards URIs and exits 0 without opening a window; a bare second launch forwards an empty Activate.cargo test -p rune --lib -- instance(bus-name unit + live bus round-trips: Open-forward with 2 URIs landing in the owner's queue; bare Activate as empty reopen).instance_manual.sh): twotodo-instancelaunches on Xvfb — second exits 0 in <2s, no second window appears; owner drains viaon_open; activation token rides the existingAppHandle::activate(token)path.#20 — toplevel fallback without layer-shell,
overlay.rsprepare()falls back to an undecorated xdg toplevel where no layer-shell binds, and the capability report says exactly what's degraded.OVERLAY_LAB_SECONDS=… OVERLAY_LAB_PICKER=1 ./target/debug/overlay-labon nested Mutter (mutter --nested --wayland-display=qa-gnome, globals confirm nozwlr_layer_shell_v1): process stays up and printsUnavailable. Contrast control: same binary on sway reportsnonactivating_keys: Supported(layer-shell path), on X11Unsupportedwith window fallback.scrotof the same pill (pill_crop_new.png: Area/Window/Screen/iPhone/Paste chips on transparent pill) and the fullscreen grab (windowed_overlay.png,xwininfoconfirmsRune pill 680x160+300+40+Rune picker), plus headlesswl_snaprenders.#19 — layer-shell launcher (no code change)
KeyPolicy::OnDemand+request_keys()+supports_keysverified on sway 1.9 (zwlr_layer_shell_v1v4):nonactivating_keys: Supported. The v4 gate (request_keysfalse below v4) and capability reporting the issue asks for both exist. Remaining work is the manual flow above, not code.#23 — no change
/dev/dri, no/dev/video*, novulkaninfo. DMA-BUF import and the GLES backend need real driver objects / GL-only hardware; unobservable under Lavapipe/Xvfb in a meaningful way, low-priority in the issue itself, so it stays filed as backlog.