Adding Filesystem Access Permissions for Specific Paths to Flatpak Applications

Flatpak uses a sandbox to ensure security, but as a result some folders and paths cannot be accessed inside applications. After consulting the documentation, I found that this problem can be solved by setting access permissions.

Steps

See the “Filesystem access” section of the official documentation. You can use the following option to add access permissions for a specific path:

1
--filesystem=/path/path

The documentation also provides the following options.

  • --filesystem=host - Access the host’s regular files, not including the host operating system or system internals mentioned below
  • --filesystem=home - Access the user’s home directory
  • --filesystem=/path/path - Access a specific path
  • --filesystem=xdg-download - Access a specific XDG folder

References