[KLUG Members] Problem with launching applications

Anthony G. Mattas anthony.mattas at ynettechnologies.com
Sat Jan 21 10:57:52 EST 2006


Actually the problem lies in the fact that your using a sudo su shell.
Just use su with the root password and that will work as well. sudo
anything will break in x for the most part. I'm not sure if there is a
flag. Sudo actually works by making a temporary copy of everything then
writing it back when the program terminates.

On Sat, 2006-01-21 at 15:02 -0500, Adam Tauno Williams wrote:
> > My problem is launching gui applications from a 'sudo su' root shell.
> > Synaptic fails with:
> > (synaptic:22507): Gtk-WARNING **: cannot open display:
> > debaser:/home/user# synaptic
> > (synaptic:22508): Gtk-WARNING **: cannot open display:
> > debaser:/home/user# synaptic
> > (synaptic:22509): Gtk-WARNING **: cannot open display:
> > debaser:/home/user# synaptic
> > K3b fails with:
> > debaser:/home/user# k3b
> > k3b: cannot connect to X server
> > How would one begin troubleshooting this type of problem?  
> 
> In switching user contexts you've either lost the value of the DISPLAY
> variable or the X authentication cookie, or both.  This isn't really
> meant to work (go to shell, su, run GUI app).
> 
> > I am able to
> > launch both synaptic and k3b by using the gnome gui -- they prompt me
> > for my root password and everything works fine.  But not from within a
> > 'sudo su' root shell.
> 
> Correct,  run "gnomesu", like I run "/opt/gnome/bin/gnomesu -c
> "/usr/sbin/pptp mail.morrison.iserv.net call morrison-vpn"" to startup
> my VPN.  The "gnomesu", and KDE must have an equivalent, makes sure all
> the required bits make it across the river.
> 
> > Thank you in advance for helping someone that isn't sure where to start
> > here 
> 
> _______________________________________________
> Members mailing list
> Members at kalamazoolinux.org
> 



More information about the Members mailing list