Funny, considering that "Flatpak" support will bring many good mechanisms:
- Rootless Jails (because Flatpak uses user namespaces)
- Rootless mounts (how will you actually setup the "jail" environment and have access to user data)
- Portals -- aka dynamic access to resources when user agrees to allow an app something (for example, Telegram Flatpak doesnt have any FS permissions at all, however when i use the file picker, only the file i select to upload goes visible to Telegram)
About Wayland -- Wayland
is actually better on FreeBSD for the simple reason being the inability to run X11 without root on FreeBSD. Fun fact -- Xlibre repository had some pull requests for allowing libseat support, but whatever.
Flatpak's portability "soluition" is mostly redundant on FreeBSD due to the fact that we dont have distros, meaning one of the core advantages of Flatpak (same runtime userland) is irrelevant. However, Flatpak also utilizes portal system for resource access and provides the end-user with mechanisms to control resource access. It is
very convenient to have means to control network or filesystem access using config file or even GUI. And it all runs
without root.
Also you could install apps in user scope, meaning the whole app will be installed somewhere in
$HOME
.
pkg(8) can do that too, and we have rootless chroots, which ive tried, you can run an entire FreeBSD userland inside your homedir and install packages in it with some pkg environment variables dark magic and with
chroot -n
, however
there are no means to control network access or to connect your user data
without root.
I saw somewhere that some mech behind Flatpak (bubblewrap?) could be ran as suid on systems with user namespaces disabled, but eh......
Also would be funny and cool if someone actually ported Flatpak and used it with Linuxlator. If we throw the task of actually running apps (again, we dont have user namespaces or any other means of managing jails and their mounts without root), the whole fetch+install process of Flatpak is doable even now (look at
sysutils/podman).
It will actually be a big win -- compatibility with Linux desktop stack routines is a net positive for everyone. A dumb way to migrate to FreeBSD -- users might think "oh, it supports Flatpak too, I better check it out". Imagine the moment when they realize later that FreeBSD is not some Linux distro and some program that uses low-level stuff actually fails on them after spending so much time using the system

.
As a (if you could say that) Flatpak user (
flatpak list --app | wc -l
will show 37 apps installed on my desktop) I understand the frustrations and controversy -- but please, give me a tool that can do things i wrote about. If this tool will be more minimal and easy to tweak like everything FreeBSD -- thatd be awesome, besides we can just hypothetically sandbox stuff using the host userland and some nullfs magic, a thing that I am currently trying to implement. pkg(8) will be more than enough for actually aquiring software. Flatpak is a great piece of technology, and all the weird stuff with it was actually a collection of (sometimes very clever) solutions to Linux userspace fragmentation and software installation methods. I am actually
dying to use FreeBSD as a daily desktop system because it is easy to set up, maintain and understand the parts of the sytsem. I mean that when you start setting up networking, disks, whatever -- it is so easy to do i was shocked the first time i did it. On Linux its literally unbearable to do something advanced except using it as desktop system. Dont believe me? Install Fedora Server and try setting up DNS for it to resolve .local addresses in your work environment, i dare you

. Another example -- GRUB settings. I love how FreeBSD does things, but I wish it did more things, because when FreeBSD does something -- it does it
just right.
All I am saying is, instead of bashing some piece of tech because the implementation was weird, ask yourself, what problem did it actually solve in the end and how you can solve the problem better. Can't defend systemd like that though

.
I just wish rooless jails were a thing

. Actually the whole post i wrote i wrote for saying two things -- flatpak isnt bad and i am obsessed with lack of rootless magic in FreeBSD.