getent group flatpak >/dev/null || groupadd -r flatpak getent passwd flatpak >/dev/null || useradd -r -g flatpak -d / -s /sbin/nologin -c "User for flatpak system helper" flatpak flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo