How to preserve the Extended File Attributes in linux?

1

I'm working on a project where i rely mostly on the file's extended attribute that i set when i create the file. But i'm facing problem while modifying the file.

Solid Example:

When i edit the file in Sublime Text, all the extended attributes are preserved, also the inode value remains the same as before. But when i do the same in Gedit, it is creating new file instead of modifying the existing one. So inode value, user defined/extended attributes are not preserved.

I see this problem is due to the copying behavior of Gedit. But is there a way to preserve them while using Gedit?

iamprem

Posted 2015-08-20T17:09:34.490

Reputation: 111

i think that is becaus how gedit works programatically, and is not there a way to preserve that values. – Francisco Tapia – 2015-08-20T20:45:23.600

Should i report it as a gedit bug? Or should we live with that? – iamprem – 2015-08-20T21:02:03.670

im not sure really but have you seen when you start to edit a file it create a file with ~ , that haves your current work and when you save your original rodument should be replaced by that. . – Francisco Tapia – 2015-08-21T11:17:24.010

No answers