I am gathering experience with extended file attributes. The goal is to save some meta-data for/with text files.
During this process I detected a strange behaviour by Gedit. When Gedit opens and resaves a file with extended file attributes, they disappear. This behaviour was already discussed, e.g. here:
https://askubuntu.com/questions/663883/gedit-not-preserving-extended-attributes-on-file-edit
https://superuser.com/questions/960300/how-to-preserve-the-extended-file-attributes-in-linux
What is even more strange, if a file with attributes previously removed by Gedit is opened and resaved by another program (e.g. LibreOffice Writer), then, sometimes they appear again! However this effect is unpredictable.
Could someone explain what is going on here?