Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions docs/module-sources.rst
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,15 @@ property. Instead of a symlink this also often a script like:
The ``subdir`` directory comes from the contents of the extracted snap
and how that is installed.

.. note::

Note that variables like ``$FLATPAK_DEST`` are not available in the
runtime sandbox or in the sandbox where ``apply_extra`` is executed
when installing the Flatpak.

Please avoid using them when creating the script in the manifest
as this will be incorrectly expanded.

The commands needed to extract the snap are specified in the ``apply_extra``
script. These can be any shell commands that run when installing the
Flatpak package but note that it won't have access to anything outside
Expand Down
6 changes: 6 additions & 0 deletions docs/sandbox-permissions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ information on how to use them.
Permissions guidelines
----------------------

.. note::

Note, that these permissions are completely static and variable
expansion or substitution (for example in ``--filesystem`` or ``--env``)
is not possible.

While application developers have control over the sandbox permissions they
wish to configure, good practice is encouraged and can be enforced. For
example, the Flathub hosting service places requirements on which permissions
Expand Down
Loading