I've created a Nautilus Action to edit files as sudo (gksudo) and the text editor that opens the file is always using a different configuration from the normal user.
The same thing happen when I run
sudo gedit file or
sudo subl file
Can I fix this or it's a security measure?