6

My gedit application is working as normal when I launch it from launch menu and I can do all the kind of things.

However when I go to terminal and issue the following command:

gedit text1

Then I get the following output:

Failed to connect to Mir: Failed to connect to server socket: No such file or directory

Unable to init server: Could not connect: Connection refused

(gedit:3825): Gtk-WARNING **: cannot open display:

However the application vim is working as normal.

This is very frustrating as I normally work in terminal and rarely use GUI except for gedit

It may be noted that today I have installed openssh server. And henceafter I am facing this problem. Why is this happening

Jonas Czech
  • 4,047
rancho
  • 4,136

1 Answers1

1

@rancho since i am new user to askubuntu, i can't comment on your question... All i know whenever you log-in into ssh server, you cannot open gedit due to DISPLAY error as stated in the link of @JonasCz. And the reason it worked after you rebooted your system because you automatically logged out from openssh server. Whenever you want to log out the openssh server after login, simply logout the ssh using "exit" command and then use gedit.. Thank you