[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

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



Niels Larsen wrote:
> I am using debian sarge.
>
> When I try to run: "sudo synaptic" I get the below warning.
>
> (synaptic:4338): Gtk-WARNING **: cannot open display:
>
> I have to my ~/.bash_profile file added following, according to advice from 
> some mailing list, but it does not help:
>
> if [[ -z $DISPLAY ]]; then
> 	export DISPLAY=:0.0
> fi
>   
If sudo is properly set up, you should not need this if statement in
your .bash_profile.

So I guess my first question is how do you have your user set up in
/etc/sudoers?

Alternatively, you might want to use "sux" rather than "sudo".

-- 
Kent




Reply to: