On 19 November 2015 at 03:18, Matthew Miller <mat...@fedoraproject.org> wrote:
> 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.
>

Completely forgot about that one! I remember using crontab's similar
function was the first time I encountered vi, that was lots of fun...

-- 
imalone
http://ibmalone.blogspot.co.uk
-- 
devel mailing list
devel@lists.fedoraproject.org
https://admin.fedoraproject.org/mailman/listinfo/devel
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct

Reply via email to