Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 08-19-2012, 12:24 PM   #1
LQ Newbie
Registered: Aug 2012
Posts: 5

Rep: Reputation: Disabled
Unhappy gedit-4865 gtk warning cannot open display

I am trying to edit the interface file but keep getting this error:
gedit-4865 gtk warning cannot open display. I have updated the apt-get gedit but to no avail. Please help..
Old 08-19-2012, 03:15 PM   #2
LQ Newbie
Registered: Aug 2012
Location: Russia
Distribution: Slackware
Posts: 3

Rep: Reputation: Disabled
If you're running X session (Gnome, Unity or other ) you can try to do so

gedit --display :0.0

Last edited by zsh; 08-19-2012 at 03:40 PM.
Old 08-19-2012, 03:18 PM   #3
Registered: Jul 2012
Location: USA
Distribution: Ubuntu 12.04 LTS, Kubuntu 12.04 LTS, Scientific Linux 6.3
Posts: 97

Rep: Reputation: Disabled
If you are trying to edit the interfaces file, you need to use the gksudo and not sudo, for example:

gksudo gedit filename
Old 08-23-2012, 04:53 AM   #4
LQ Newbie
Registered: Aug 2012
Posts: 5

Original Poster
Rep: Reputation: Disabled

Many thanks, it is all working now.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
(gedit:6540): Gtk-WARNING **: cannot open display: :0 jax8 Programming 3 05-07-2009 07:57 AM
export display and Gtk-WARNING **: cannot open display: zimma Linux - Server 0 04-24-2009 02:51 AM
Gtk-WARNING **: cannot open display iamjoepesci Red Hat 2 10-17-2008 11:51 AM
Gtk-WARNING **: cannot open display elfoozo DamnSmallLinux 3 07-12-2007 09:41 PM
GTK-Warning ** cannot open display kgblossom Debian 6 02-18-2007 02:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:16 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration