table of contents
- stretch 0.8.9-0+deb9u3
- testing 1.2.4-1
- stretch-backports 1.2.4-1~bpo9+1
- unstable 1.2.4-1
- experimental 1.4.2-1
FLATPAK METADATA(5) | flatpak metadata | FLATPAK METADATA(5) |
NAME¶
flatpak-metadata - Information about an application or runtimeDESCRIPTION¶
Flatpak uses metadata files to describe applications and runtimes. The metadata file for a deployed application or runtime is placed in the toplevel deploy directory. For example, the metadata for the locally installed application org.gnome.Calculator is in ~/.local/share/flatpak/app/org.gnome.Calculator/current/active/metadata.Most aspects of the metadata configuration can be overridden when launching applications, either temporarily via options of the flatpak run command, or permanently with the flatpak override command.
A metadata file describing the effective configuration is available inside the running sandbox at /run/user/$UID/flatpak-info.
FILE FORMAT¶
The metadata file is using the same .ini file format that is used for systemd unit files or application .desktop files.[Application] or [Runtime]¶
Metadata for applications starts with an [Application] group, metadata for runtimes with a [Runtime] group.The following keys can be present in these groups:
name (string)
runtime (string)
sdk (string)
command (string)
[Context]¶
This group determines various system resources that may be shared with the application when it is run in a flatpak sandbox.All keys in this group (and the group itself) are optional.
shared (list)
sockets (list)
devices (list)
filesystems (list)
persistent (list)
[Session Bus Policy]¶
If the sockets key is not allowing full access to the D-Bus session bus, then flatpak provides filtered access.The default policy for the session bus only allows the application to own its own application ID and subnames. For instance if the app is called "org.my.App", it can only own "org.my.App" and "org.my.App.*". Its also only allowed to talk to the bus itself (org.freedesktop.DBus) and the portal APIs APIs (bus names of the form org.freedesktop.portal.*).
Additionally the app is always allowed to reply to messages sent to it, and emit broadcast signals (but these will not reach other sandboxed apps unless they are allowed to talk to your app.
If the [Session Bus Policy] group is present, it provides policy for session bus access.
Each key in this group has the form of a D-Bus bus name or prefix thereof, for example org.gnome.SessionManager or org.freedesktop.portal.*
The possible values for entry are, in increasing order or access:
none
see
talk
own
[System Bus Policy]¶
If the sockets key is not allowing full access to the D-Bus system bus, then flatpak does not make the system bus available unless the [System Bus Policy] group is present and provides a policy for filtered access.Entries in this group have the same form as for the [Session Bus Policy] group. However, the app has no permissions by default.
[Environment]¶
The [Environment] group specifies environment variables to set when running the application.Entries in this group have the form VAR=VALUE where VAR is the name of an environment variable to set.
[Extension NAME]¶
Runtimes and applications can define extensions, which are optional, additional runtimes to be mounted at a specified location inside the sandbox when they are present on the system. Typical uses for extensions include translations for applications, or debuginfo for sdks. The name of the extension is specified as part of the group heading.directory (string)
version (string)
subdirectories (boolean)
no-autodownload (boolean)
autodelete (boolean)
EXAMPLE¶
[Application] name=org.gnome.Calculator runtime=org.gnome.Platform/x86_64/3.20 sdk=org.gnome.Sdk/x86_64/3.20 command=gnome-calculator [Context] shared=network;ipc; sockets=x11;wayland; filesystems=xdg-run/dconf;~/.config/dconf:ro; [Session Bus Policy] ca.desrt.dconf=talk [Environment] DCONF_USER_CONFIG_DIR=.config/dconf [Extension org.gnome.Calculator.Locale] directory=share/runtime/locale subdirectories=true [Extension org.gnome.Calculator.Debug] directory=lib/debug
SEE ALSO¶
flatpak(1), flatpak-run(1), flatpak-override(1)flatpak |