I use Master PDf editor installed through flathub to edit some PDf files.
When I close it, I can sse by lsof | grep /media/<MYUSER>/<DEVICE> that xdg-document is keeping my file open.
What is xdg-document, why it is keeping the file open and how can I prevent it from doing this?