I screwed up, in an attempt to fix the foliate flatpak I ran the following command from the terminal (like user):
~$ WEBKIT_DISABLE_DMABUF_RENDERER=1
I don't know what it does to the system, could it have done any damage?
I use KDE, X11 and nvdia.
Thanks