Stumped: Gtk-WARNING **: cannot open display:

Collins Richey crichey
Sun Oct 9 16:05:48 PDT 2005


On 10/9/05, Hermann J. Beckers <hj.beckers at onlinehome.de> wrote:
>
> >
> > Sigh, yes a typo, and that was part of the answer. Now the attempt to
> > run 'synaptic &' goes far enough that I get the [1] pidnbr display and
> > a new bash # prompt, but synaptic still dies with the old familiar
> > complaint.
> >
> >
> >From your previous post:
>
> >> 1. xhost +localhost
> >> 2. export DISPLAY=localhost:0,0
> >> 3. sudo su -
> >> 4. synaptic &
>
> switch steps 3. and 2. You have to define DISPLAY for the new root
> environment.
>

Thanks for the suggestion, but I made sure that I set DISPLAY after
the sudo su -.

It turns out that just plain 'sudo synaptic' works, so I guess I'll
not worry about the other problem.


--
Collins Richey
      Debugging is twice as hard as writing the code ... If you write
      the code as cleverly as possible, you are, by definition, not
      smart enough to debug it.
             -Brian Kernighan



More information about the Linux-users mailing list