Pin srt to a tested version; support only Pop!_OS 26.04 and later

srt is pinned to 0.0.83, the version the smoketest passed with. A computer
with another version sees the agents item as to do in configure, which
installs the pinned one. Move the pin only after smoketest/run 50 80 passes.

The installer and configure stop on Pop!_OS (or Ubuntu) older than 26.04.
The smoketest builds on Ubuntu 26.04, with checks that 24.04 is refused.
26.04's own AppArmor profile lets bubblewrap make user namespaces, so the
connector's profile for it, and the code that offered to add it, are gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-28 20:49:54 -07:00
co-authored by Claude Opus 5.5
parent c84e6d3aa0
commit b609252e1c
17 changed files with 95 additions and 75 deletions
+6 -1
View File
@@ -73,8 +73,13 @@ preflight() {
[ "$(uname -s)" = Linux ] || fail "This is for Pop!_OS. On a Mac, use Federated Connector for macOS."
[ "$(id -u)" -ne 0 ] || fail "Run this as yourself, not as root. It asks for your password when it needs it."
command -v apt-get > /dev/null || fail "This is for Pop!_OS (or another Ubuntu-based system); this one has no apt."
case "$(os_field ID)" in
pop|ubuntu)
[ "$(printf '%s\n' 26.04 "$(os_field VERSION_ID)" | sort -V | head -n 1)" = 26.04 ] \
|| fail "This needs Pop!_OS 26.04 or later; this computer runs $(os_field PRETTY_NAME). Upgrade first." ;;
esac
if [ "$(os_field ID)" != pop ]; then
echo "${YELLOW}This is made for Pop!_OS with COSMIC; this computer runs $(os_field PRETTY_NAME)."
echo "${YELLOW}This is made for Pop!_OS 26.04 or later with COSMIC; this computer runs $(os_field PRETTY_NAME)."
echo "Most of it works on other Ubuntu-based systems too.$RESET"
fi
if ! id -Gn | tr ' ' '\n' | grep -qxE 'sudo|admin'; then