Yesterday i was trying to learn a little more about pkexec since
gksu now is going down for real.
I found a problem though:
I tried to open an already existent file with
pkexec MY_TEXT_EDITOR /path/to/file but a new file with the same name is created for root user.
I also attempted to open with
pkexec --user MYUSER MY_TEXT_EDITOR /path/to/file in order to open the file under my user, this last command didn’t work.
So any ideas how could i use pkexec to my user, or it was not created for that purpose?