flatpak-run
execute sandboxed Flatpak applications
TLDR
Run an installed flatpak application
SYNOPSIS
flatpak run [options] ref [args...]
DESCRIPTION
Flatpak run executes applications or opens shells within Flatpak's sandboxed environment. The sandbox provides isolation with the runtime mounted at /usr, application at /app, and a writable /var directory for persistent data.
When running an application, extra arguments pass through to the application. For runtimes, the command opens a shell for development and testing purposes.
The sandbox automatically adjusts environment variables including PATH, LD_LIBRARY_PATH, and graphics-related variables to ensure proper isolation and prevent interference with sandbox functioning.
PARAMETERS
--user
Use per-user installation--system
Use system-wide installation--arch arch
Target specific architecture--branch branch
Use specific branch (stable, beta, master)--command command
Run specified command instead of default--runtime runtime
Use a different runtime--runtime-version version
Use specific runtime version--sandbox
Run with minimal permissions (strip extras)--share subsystem
Share subsystem with host (network, ipc)--unshare subsystem
Unshare subsystem from host--socket socket
Expose well-known socket (x11, wayland, pulseaudio)--nosocket socket
Don't expose socket--filesystem path
Grant filesystem access (home, host, /path)--nofilesystem path
Revoke filesystem access--env var=value
Set environment variable
CAVEATS
Sandbox permissions are controlled by the application's manifest and can be overridden at runtime using --share, --socket, and --filesystem options. Using --sandbox provides maximum isolation but may break applications requiring specific permissions. Some applications may not function correctly with modified runtimes.
HISTORY
Part of the Flatpak project developed by Alexander Larsson at Red Hat. Flatpak evolved from the xdg-app project around 2015, providing sandboxed application execution on Linux with strong isolation guarantees.
SEE ALSO
flatpak(1), flatpak-install(1), flatpak-override(1)
