[gvfs-googlebackend] Trying to replace contents of a file from a Google Drive mounted folder fails
When trying to replace the contents of a Google Drive file with the GLib method replace_contents_bytes_async an exception is raised, with the form of
Error opening file “/run/user/1000/doc/35d50a56/1PmXUf84kytpigAO-ePdTnb-EcyhICqCj”: Too many levels of symbolic links
if that file was selected through the Filechooser Portal (i.e, when using FilechooserNative on a flatpaked environment).
I made a simple test case, which is accessible at https://gitlab.gnome.org/somas/glib-filechooser-portal-test
Just clone it with Builder and hit "play", the program has all the instructions in it. The relevant code is in window.py
[Edit]
Not only happens for Google Drive locations, but for Owncloud mounts too