I have installed sublime text 3 using official website docs. I can launch it from searching and clicking on sublime icon as well as from terminal just by typing subl. But nothing is working when I type
> sudo subl [some file name]
No error nothing is being displayed. How to resolve this? I have ubuntu 17.10
I am trying
> gksudo subl ~/.bashrc
Unable to copy user's Xauthrisation file
gksudo
or ratherkdesudo
to start graphical programs,sudo
is just for the command line. – dessert Nov 01 '17 at 12:50which subl
show? Did you trygksudo /full/path/to/subl
? – dessert Nov 01 '17 at 12:52I am getting this error
Failed to run subl '/home/brij/.bashrc' as user root.
Unable to copy the user's Xauthorization file. and also after giving the full path of sublime, same error is occuring
– Brij Raj Kishore Nov 01 '17 at 12:55echo $XDG_SESSION_TYPE
: It will replywayland
orx11
. – sudodus Nov 01 '17 at 13:39