On Wed, Nov 18, 2015 at 03:09:34PM -0500, Adam Jackson wrote:
To the bug in question: probably we should make it so 'sudo gedit' does work, but I'd still strongly discourage anyone from actually doing so.
Actually, there's a better way. The authors of sudo already considered this. Set "VISUAL" to gedit, and use `sudo -e`. That invokes the editor as non-root on a temporary file, and copies that temp file into place when done.