Skip to content

Flatpak Permissions

Taiko2k edited this page Mar 6, 2021 · 44 revisions

By default, the Flatpak install will run in a restricted sandbox. However for some functionality to be available, some additional permissions will need to be granted.

Allow file access to a specific path:

sudo flatpak override com.github.taiko2k.tauonmb --filesystem=/mnt/example/mymusic/

Note: If the flatpak is installed as user instead of system then run override commands without sudo and include the --user flag. So for example the above command becomes flatpak override --user com.github.taiko2k.tauonmb --filesystem=/mnt/example/mymusic/

Provide access to all host files:

Note: For best security practice, its better to permit just the path to your music library as above.

sudo flatpak override com.github.taiko2k.tauonmb --filesystem=host

Edit with Picard:

sudo flatpak override com.github.taiko2k.tauonmb --talk-name=org.freedesktop.Flatpak

Note: This permission allows the running of commands in the host environment, essentially disabling the sandbox.

Note: Only host installed (non-flatpak) type Picard is supported at this time.

Restart the app if open for changes to take effect.

Discord RP

Flatpak Tauon to non-Flatpack Discord:

sudo flatpak override com.github.taiko2k.tauonmb --filesystem=xdg-run/discord-ipc-0

Note: You may need to have Tauon running before Discord for RP to work, or vice-versa.

Non-Flatpak Tauon to Flatpak Discord:

ln -sf {app/com.discordapp.Discord,$XDG_RUNTIME_DIR}/discord-ipc-0

Note: Effect may be lost on system reboot. Run before starting Tauon.

Flatpak Tauon to Flatpak Discord

No special configuration should be necessary.

To revert permissions

If you later want to revert to the default permissions, run:
sudo flatpak override com.github.taiko2k.tauonmb --reset

Clone this wiki locally