I’m not able to install the flathub repository, I apply the command “flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo”, and I get the message
Note that the directory
‘/root/.local/share/flatpak/exports/share’
is not in the search path set by the XDG_DATA_DIRS environment variable, so
applications installed by Flatpak may not appear on your desktop until the
session is restarted.
erro: Ao abrir o repositório /var/lib/flatpak/repo: opendir(objects): Arquivo ou diretório não encontra
It looks like an informative message telling you that you will need to logout and login again before you can use the repository that you just installed.
And to the OP, to avoid such confusion in the future:
There is an important, but not easy to find feature on the forums.
Please in the future use CODE tags around copied/pasted computer text in a post. It is the # button in the tool bar of the post editor. When applicable copy/paste complete, that is** including the prompt, the command, the output and the next prompt.
**
An example is here: Using CODE tags Around your paste.