Gedit :: file changed on disk

when I have a file open with gedit that resides on an smb share I constantly get a notice that “The file xy changed on disk” and I should reload the file. In fact the file was not changed (at least not the content, maybe some meta data).
Do you have any ideas how to solve that?
btw: I use Fedora 34 with Gnome 40

From a quick scan through the source code, I think Gedit seems to be using GtkSourceFile's API for local files only. It doesn’t seem to check for remote files.

Maybe it is not about gvfs mount, but about cifs mount. How is that mounted? The check is based on the modification time. Can you please verify that the modification time was changed? Ideally using the gio info --attributes "time::*" [FILE] command…

the modification time does not seem to be changed, I checked the gio info before opening the file and then as soon as the error was shown in gedit, the output was exactly the same

$ gio info --attributes "time::*" testfile.txt
Adresse: file:///home/chris/Dokumente/Documents/testfile.txt
Lokaler Pfad: /home/chris/Dokumente/Documents/testfile.txt
Unix-Einhängepunkt: // /home/chris/Dokumente cifs rw,relatime,vers=3.1.1,cache=strict,username=chris,uid=1000,noforceuid,gid=1000,noforcegid,addr=,file_mode=0755,dir_mode=0755,soft,nounix,serverino,mapposix,rsize=4194304,wsize=4194304,bsize=1048576,echo_interval=60,actimeo=1,_netdev,x-gvfs-hide
  time::modified: 1635185574
  time::modified-usec: 128827
  time::changed: 1635185574
  time::changed-usec: 128827
  time::created: 1635185574
  time::created-usec: 1250

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.