I upgraded to Ubuntu 17.10. Now when I run
sudo gedit
I get the error
Invalid MIT-MAGIC-COOKIE-1 keyError: Can't open display: :0
How to fix it?
I upgraded to Ubuntu 17.10. Now when I run
sudo gedit
I get the error
Invalid MIT-MAGIC-COOKIE-1 keyError: Can't open display: :0
How to fix it?
Run:
xhost local:user1
(Replace user1
with your username.)
xhost local:root
. and this command may not work on waylnd which is default for 17.10
– ravery
Oct 21 '17 at 08:43
xhost local:root
in it. you should correct your answer so that is applies to more users.
– ravery
Oct 21 '17 at 09:27