Commit3ff61ae9Recorded16 Jul 2026Repositorylantern
add run-transparency-test.sh: one-liner visual cert for window transparency
Changed
run-transparency-test.sh | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)Diff
run-transparency-test.shadded
@@ -0,0 +1,30 @@
+1
#!/usr/bin/env bash+2
# Visual cert for Lantern window transparency (task lantern-translucency).+3
#+4
# ./run-transparency-test.sh+5
#+6
# Opens the static semi-transparent CSS page (examples/transparency-test) in a+7
# transparent-capable Lantern window. If the Lantern side works, your desktop+8
# shows through the tinted page background and fully through the dashed cutout,+9
# while the blue panel stays solid. Zero Slate dependency — isolates the+10
# GtkWindow RGBA + alpha-0 webview change.+11
#+12
# Wraps the invocation in an ephemeral `guix shell` (the GTK4 + WebKitGTK + Mesa+13
# graphics stack from gl-manifest.scm). If the window never maps, re-run with+14
# LANTERN_SOFTWARE_RENDER=1 (the Mesa GL loader-path gotcha).+15
set -euo pipefail+16
+17
HERE="$(cd "$(dirname "$0")" && pwd)"+18
PAGE="${1:-$HERE/examples/transparency-test}"+19
LANTERN_BIN="$HERE/build/native/bin/lantern"+20
+21
[ -x "$LANTERN_BIN" ] || { echo "missing $LANTERN_BIN — run: sigil build lantern-cli --config native" >&2; exit 1; }+22
[ -f "$PAGE/index.html" ] || { echo "no index.html at $PAGE" >&2; exit 1; }+23
+24
echo "==> page: $PAGE"+25
echo "==> lantern: $LANTERN_BIN"+26
exec guix shell -m "$HERE/gl-manifest.scm" -- bash -c '+27
export LD_LIBRARY_PATH="$GUIX_ENVIRONMENT/lib"+28
export LANTERN_LIB_DIR="$GUIX_ENVIRONMENT/lib"+29
exec "$0" run "$1" --title "Transparency test" --transparent+30
' "$LANTERN_BIN" "$PAGE"