I’m not sure if it’s relevant but a quick googling found a similar error with a different app that was resolved after deleting GTK_USE_PORTAL
.
I had
GTK_USE_PORTAL=1
in my/etc/environment
, which I think I added to force Qt-based applications to use more ‘native’ File Open and File Save dialogue boxes under Cinnamon. When I removed this and rebooted, I no longer experience the same error
https://gitlab.gnome.org/GNOME/glib/-/issues/2249
Solved. I had GTK_USE_PORTAL=1 in my .profile. I removed it and now it is working.
https://www.reddit.com/r/archlinux/comments/f69349/gnomegiogvfs_directories_refuse_to_be_moved_to/
I guess, the following command can be used to check if it exists or not.
printenv GTK_USE_PORTAL
or
echo $GTK_USE_PORTAL