Fennec OS 0.3.2: one app at a time, Raspberry Pi shell packages

- sf-core: only one app runs. Home, another app or a cast closes the app
  on screen (after the switch animation) instead of freezing it in the
  background. A frozen app that held a sound stream stalled PipeWire, so
  the next app could not play at all ("Failed to connect stream: No such
  entity" in Netflex after YouTube was sent home mid-video). The
  background limit and the low-memory watcher go with the freezing.
- Raspberry Pi: image/pi (installer on Raspberry Pi OS), aarch64 shell
  packages (sf-shell-<v>-aarch64, arch in pkg.toml, sf-update installs only
  its own architecture), CI builds the aarch64 shell too.
- sf-compositor: volume OSD, screencopy for remote view, blank cursor.
- SDK v0.1.2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-11-02 19:38:09 +01:00
parent 54cdaf5e35
commit 9c710bedb9
33 changed files with 1329 additions and 319 deletions

View File

@@ -32,6 +32,15 @@ if [ -x "$PKG/current/bin/sf-launcher" ]; then
rm -f "$TRIES"
fi
fi
# Remote viewing for development (README, "Távoli képernyő (VNC)"): wayvnc
# on localhost only, reached through an ssh tunnel. No --gpu by default:
# wayvnc's H.264 encoder crashes on the Raspberry Pi 4 (wayvnc 0.10);
# SMARTFOX_VNC_ARGS=--gpu in session.env turns it on where it works.
if [ "${SMARTFOX_REMOTE_VIEW:-0}" = 1 ] && command -v wayvnc >/dev/null; then
pkill -u "$(id -u)" -x wayvnc 2>/dev/null
# shellcheck disable=SC2086
wayvnc ${SMARTFOX_VNC_ARGS:-} --max-fps=30 --name="Fennec OS" 127.0.0.1 5900 &
fi
# sf-core starts and freezes apps, runs DIAL (YouTube cast) and the AirPlay /
# Miracast receivers. It quits by itself when this Wayland session ends.
pkill -u "$(id -u)" -x sf-core 2>/dev/null

View File

@@ -22,11 +22,15 @@ export XCURSOR_THEME=smartfox-blank XCURSOR_SIZE=24
# Output mode: the TV's preferred mode, except in VMs where the host window
# reports odd sizes. Override with SMARTFOX_MODE=WxH in /etc/default/smartfox.
[ -f /etc/default/smartfox ] && . /etc/default/smartfox
# Same, on the writable data partition (root is read-only), e.g. for debugging:
[ -f /etc/default/smartfox ] && { set -a; . /etc/default/smartfox; set +a; }
# Same, on the writable data partition (root is read-only); every variable
# set in these files is passed on. E.g. for debugging:
# echo 'RUST_LOG=sf_launcher=debug' > /var/lib/smartfox/session.env (fps every 5 s)
[ -f /var/lib/smartfox/session.env ] && . /var/lib/smartfox/session.env
[ -f /var/lib/smartfox/session.env ] && { set -a; . /var/lib/smartfox/session.env; set +a; }
export RUST_LOG
# Remote viewing for development (wayvnc, README "Távoli képernyő (VNC)").
export SMARTFOX_REMOTE_VIEW="${SMARTFOX_REMOTE_VIEW:-0}"
export SMARTFOX_VNC_ARGS="${SMARTFOX_VNC_ARGS:-}"
if [ -z "${SMARTFOX_MODE:-}" ] && systemd-detect-virt -q; then
SMARTFOX_MODE=1920x1080
fi