I did some testing with AirSail (harbour-io.edin.projects.airsail-transfer). Without any [X-Sailjail]-section in AirSail.desktop-file, I saw all UserDirs, but not user created ~/bin - for example.
Adding HomeDir.permission in /etc/sailjail/permissions
# -*- mode: sh -*-
# x-sailjail-translation-catalog = sailjail-permissions
# x-sailjail-translation-key-description = permission-la-homedir
# x-sailjail-description = HomeDir
# x-sailjail-translation-key-long-description = permission-la-homedir_description
# x-sailjail-long-description = Access Home-directory
whitelist ${HOME}
and adding
[X-Sailjail]
Permissions=HomeDir;UserDirs;Internet
in AirSail.desktop allowed me to browse all directories. If I omitted UserDirs, I saw but couldn’t browse Documents and Downloads, for example. If I omitted HomeDir, adding AirSail.profile
# -*- mode: sh -*-
whitelist ${HOME}
in /etc/sailjail/permissions did the trick.
However, according to Building Custom Profiles | Firejail, adding .profile-files in ~/.config/firejail/ should also work, but I didn’t get that working. Nor in ~/.config/sailjail/.