Could not copy/move/symlink files using Dolphin file manager

If I try to move or copy files using Doplhin, when I paste I get an error saying that file: Could not activate remote peer: startup job failed does not exist. And if I symlink I get a broken symlink called Could not activate remote peer: startup job failed. I’m manipulating files using the terminal for now, but help would be appreciated.

I tried reinstalling dolphin, nothing changed.
Note: Directories are not affected.

I figured it out by myself, turns out xdg-desktop-portal was the problem, according to the logs:

systemd[1579]: Starting xdg-document-portal.service - flatpak document portal service...
xdg-document-portal[3702]: error: Failed to load db from '~/.local/share/flatpak/db/documents': invalid gvdb header
systemd[1579]: xdg-document-portal.service: Main process exited, code=exited, status=2/INVALIDARGUMENT
systemd[1579]: xdg-document-portal.service: Failed with result 'exit-code'.
systemd[1579]: Failed to start xdg-document-portal.service - flatpak document portal service.

The fix was to remove ~/.local/share/flatpak/db.
I don’t know what does flatpak have to do with this, since dolphin is installed using dnf.

2 Likes

Maybe a bug in dolphin since it appears both as a flatpak and as an rpm.
If it looks for the db at that location first and reports an error instead of moving on it may have that result.