This is the manifest to build a flatpak to run distrobox.
make clean
make
make install
Alternatively:
mkdir -p dist
flatpak-builder \
--disable-rofiles-fuse \
--user \
--repo=dist/repo \
--state-dir=dist/.flatpak-builder \
--force-clean dist/tmp/ \
--default-branch=beta \
io.github.luca.distrobox.yml
flatpak build-bundle dist/repo/ dist/io.github.luca.distrobox.flatpak io.github.luca.distrobox beta
flatpak install --user -y dist/io.github.luca.distrobox.flatpak
This flatpak does not really support sandboxing, as the target of distrobox is tight integration with the host.
flatpak run io.github.luca.distrobox
And use it as you normally would use distrobox.
It is handy to put an alias in your shell to shorten the command: alias distrobox="flatpak run io.github.luca.distrobox"
Usage is the same as the normal app, just the command name changes from distrobox
to flatpak run io.github.luca.distrobox
This work is originated on the manifest of @axtloss in axtloss/flatpaks and of @mirkobrombin in AtomsDevs/Atoms