When you issue something like gksudo "gedit foofile" in a terminal in gnome, the terminal shows an error message (see below) but the commans works anyway.  Can anyone explain for me in English what is actually happening?  While I have no problem with the result, it seems like there should be a failure and it makes me curious.

(gedit:5638): GnomeUI-WARNING **: While connecting to session manager:
Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed.
TIA
--
"The liberties of a people never were, nor ever will be, secure, when the transactions of their rulers may be concealed from them."

Patrick Henry quote