I have a workaround for those LTS users like me who haven't got the fixed gedit. As stated if gksudo gksudo gedit is run, it doesn't create the empty document. Therefore, adding this:
gksudo()
{
if [ "$1" = "gedit" ]
then
shift
gksudo gksudo gedit "$@"
else
command gksudo "$@"
fi
}
to your .bashrc will fix it. For those who don't know bash, it's a function that will be called when the user types gksudo. If the second argument is gedit, then it shifts the argument array, to drop off the first, and then passes the argument array to gksudo gksudo gedit. (This makes sure that if the users specifies a file to open it will get opened). Otherwise it just runs gksudo for us.
I have a workaround for those LTS users like me who haven't got the fixed gedit. As stated if gksudo gksudo gedit is run, it doesn't create the empty document. Therefore, adding this:
gksudo()
{
if [ "$1" = "gedit" ]
then
shift
gksudo gksudo gedit "$@"
else
command gksudo "$@"
fi
}
to your .bashrc will fix it. For those who don't know bash, it's a function that will be called when the user types gksudo. If the second argument is gedit, then it shifts the argument array, to drop off the first, and then passes the argument array to gksudo gksudo gedit. (This makes sure that if the users specifies a file to open it will get opened). Otherwise it just runs gksudo for us.