How can I run sudo gedit as gksu gedit

Posted by SimplySimon on Ask Ubuntu See other posts from Ask Ubuntu or by SimplySimon
Published on 2013-07-01T09:35:34Z Indexed on 2013/07/01 10:29 UTC
Read the original article Hit count: 525

Filed under:
|
|
|
|

I'm looking into ways of automatically loading Gedit as gksu gedit when I enter sudo gedit by mistake?

I have found that I have made a number of files unreachable by using gedit and I have only just found out why!

ACHIEVED SO FAR

I have written a script which will make an alias so that if I type in sudo <application> it can automatically convert that to gksu <application> but I want to make this alias stick, so that I don't have to run the script every time I boot the computer.

Is there a config file I can edit or should I run this script as a start up script (which would be inconvenient!)?

© Ask Ubuntu or respective owner

Related posts about command-line

Related posts about bash