Skip to content

research: Flatpak delivery and sandbox — how users get it, and does it behave on a clean desktop #2318

Open

Description

@zackees

Refs #2304, #2227, #2306. Part of the Flatpak meta issue #2319. Depends on the identity research issue for the app id it will ship under.

Question

Once we have an id, how does an OBS-Studio-Rust Flatpak actually reach
users, and does it behave on a real desktop?

Part A — delivery path

Three candidate routes; pick one, or a staged combination:

  1. Flathub listing. Submit to flathub/flathub under our own id. Needs:
    AppStream metainfo with our URLs (see packaging: the Linux AppStream metainfo sends bug reports and the project link to upstream OBS (obsproject/obs-studio) #2302), a source repo entry,
    flathubbot builds or a release-tagged manifest, and passing Flathub's
    sandbox/permission review. Note .github/workflows/publish.yaml here is
    upstream's Flathub publisher and is gated on
    github.repository_owner == 'obsproject' (lines 19, 76, 235, 252), so it
    does nothing for us — Flathub's own build infrastructure would do the work.
  2. Release asset bundle. Build a .flatpak/.flatpakref in
    release-rust.yaml next to the .deb and AppImage, published on the GitHub
    release like everything else. Needs: a bundle step, a repo/URI story for
    updates (flatpak update needs a remote), and the README's
    "every format we name must have an asset" test extended to cover it.
  3. Our own flatpak repo (OCI or static repo) served from the release
    feed, so flatpak remotes-add + flatpak update works without Flathub.

Deliverable: a recommendation with the update mechanism spelled out
(who publishes, how a user's install learns about a new beta, how that
interacts with the existing continuous AppImage updater feed).

Part B — sandbox and behavior verification

The manifest inherits upstream's finish-args
(--filesystem=host, --device=all, --share=network,
--filesystem=xdg-run/pipewire-0, --talk-name=org.freedesktop.Flatpak,
--talk-name=org.freedesktop.StatusNotifierWatcher, VST_PATH extension).
Answer, with evidence from a clean VM per desktop:

  • What is the minimum permission set for: Wayland/X11 capture,
    PipeWire screen capture, audio in/out, hardware encoding
    (VA-API and QSV — sandbox device access is exactly where AnduinOS - Appimage build Missing Encoders linux ffmpeg_vaapi_tex, obs_qsv11_v2 #1720-class
    problems appear), VST plug-ins, browser source if/when appimage: Ship the browser source (CEF) in the AppImage #1865 lands.
  • Does each hardware encoder initialize inside the sandbox? Record the
    log lines, not "seemed to work".
  • Do per-user plug-ins (the folders the AppImage loads, per the README
    FAQ) load inside the sandbox, or only the Flatpak extension points?
  • Same install, three desktops (GNOME/KDE/whatever is common), clean VM:
    what fails? This is the Flatpak half of packaging: Flatpak and .deb installs misbehave on a plain Linux desktop #2227 — file one concrete bug
    per failure rather than a "Flatpak is broken" comment.
  • Compare against the AppImage on the same VM: what does a Flatpak buy us
    that the AppImage does not already give? If the honest answer is
    "distribution-native install + auto-updates + sandbox", say that — it
    is the justification for the work.

Definition of done

  • A delivery route chosen, with the update path written down.
  • A finish-args diff (removed / kept / added, each justified).
  • A verification matrix (desktop × feature) with real logs, and one
    filed issue per failure found.
  • Everything above feeds the plan issue named in the Flatpak meta issue.

Research only: no manifest edits, no publishing.

Activity

  1. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    Claiming Part A (delivery route + update path) and a source-level finish-args review. Part B's VM/hardware matrix stays open; I have no clean desktop VMs or encoders.

  2. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    Part A: delivery route (research, master 2026-10-25)

    What exists already

    • CI already makes a bundle: build-project.yaml:824-829 runs flatpak build-bundle (obs-studio-flatpak-<sha>.flatpak) on tags and release/* pushes. Nothing publishes it.
    • release-rust.yaml ships the .deb and the AppImage. The AppImage updates through the rolling continuous release and .zsync (lines 640-662).
    • ci/test_readme_package_formats.py already maps Flatpak to a .flatpak/.flatpakref asset. Once the README names a Flatpak, a release has to carry one.

    The three routes

    Route Who publishes How an install learns of a new build Cost / blocker
    1. Flathub (io.github.obs_rust.OBSStudioRust, beta through flathub-beta) Flathub's buildbot, from a manifest in flathub/io.github.obs_rust.OBSStudioRust flatpak update and GNOME Software/Discover, automatically Flathub review: our own metainfo URLs (#2302), sandbox justification, io.github id verification. Builds come from tagged sources, not our CI, so a nightly feed is impractical; betas only.
    2. Release-asset .flatpak bundle release-rust.yaml, by publishing the bundle CI already builds It doesn't. A bundle has no update remote, so users reinstall the next asset by hand. Cheap: one upload step plus the README test. Runtime deps resolve from Flathub at install time.
    3. Our own OSTree/OCI repo release workflow flatpak update against our remote We host a growing OSTree repo (hundreds of MB per build; GitHub Pages' 1 GB limit rules it out) or an OCI index + GHCR, plus a GPG signing key in CI. Most work and most to keep up.

    Recommendation: 2 now, 1 when the beta stabilises, never 3

    1. Stage 1: bundle as a release asset. After research: Flatpak app identity — what it takes to stop shipping as com.obsproject.Studio #2317's rebrand, release-rust.yaml uploads the .flatpak (renamed OBS-Studio-Rust-<ver>-linux-x86_64.flatpak) beside the .deb and AppImage. Its README line says what's true: no auto-update, and to get the next beta you install the next bundle. It cannot collide with a Flathub OBS, because it uses its own id. Gate: the AGENTS.md packaging rule, i.e. install the bundle and start it with a saved profile, as the AppImage test does.
    2. Stage 2: Flathub. Submit once the metainfo (packaging: the Linux AppStream metainfo sends bug reports and the project link to upstream OBS (obsproject/obs-studio) #2302) and the finish-args review below are settled. Flathub becomes the update path, with flathub-beta for pre-releases. The continuous AppImage feed stays the nightly channel. The two don't interact: different formats, different ids on disk.
    3. No own repo. It adds hosting and a long-lived signing key in exchange for one thing Flathub gives for free.

    finish-args, from source (not yet verified on a VM)

    Current list: build-aux/com.obsproject.Studio.json:7-19.

    Arg Verdict Why
    --socket=wayland, --socket=fallback-x11 keep the Qt UI; X11 capture under XWayland
    --socket=pulseaudio keep audio in/out goes through PulseAudio/pipewire-pulse
    --filesystem=xdg-run/pipewire-0 keep PipeWire camera and screen-cast streams (plugins/linux-pipewire)
    --device=all keep V4L2 cameras, /dev/dri VA-API/QSV, DeckLink/AJA. --device=dri alone loses cameras. Flathub accepts all for OBS.
    --share=network, --share=ipc keep streaming and obs-websocket; X11 MIT-SHM
    --filesystem=host question it recordings, media sources and image sources pick arbitrary paths. The file-chooser portal covers the dialogs but not saved scene paths, so dropping it breaks existing scene collections. Keep it for Stage 1 and expect Flathub review to ask.
    --talk-name=org.freedesktop.Flatpak keep, document the virtual camera uses it: plugins/linux-v4l2/v4l2-output.c.h:48 runs flatpak-spawn --host to load v4l2loopback (modprobe, through pkexec). Removing it breaks the virtual camera. That is the reason to give Flathub review.
    --talk-name=org.kde.StatusNotifierWatcher, org.freedesktop.Notifications, org.a11y.Bus keep tray, notifications, accessibility
    --env=VST_PATH=... keep the LinuxAudio VST extension point
    (add) none GlobalShortcuts uses the portal (needs the right app id; #2346 / #2347)

    Not done here (Part B)

    The desktop-by-feature verification matrix, hardware encoder logs, and per-user plug-in loading inside the sandbox need clean VMs and real GPUs. They stay open for someone with that hardware. Inside the sandbox, the per-user plug-in folder is ~/.var/app/<id>/data/obs-studio/plugins (see the #2317 findings).

  3. added
    ready
    on Oct 25, 2026
  4. moved this from In progress to Ready in obs-rust Multiviewon Oct 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ready

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions