[KLUG Members] Problem with launching applications

Anthony G. Mattas anthony.mattas at ynettechnologies.com
Sun Jan 22 10:10:04 EST 2006


Oh yes, I forgot, look into the program gksudo as well.

On Sun, 2006-01-22 at 06:38 -0500, greenproc wrote:
> Anthony G. Mattas wrote:
> > 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've been a lucky guy so far then, because I've never had problems with
> an x app in a 'sudo su' shell before.  It's good to be aware that there
> are *supposed* to be problems with this method <g>
> 
> > 
> > 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
> 
> >>>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.
> 
> I'll check out gnomesu and see how it works.  At least I know why the
> problem existed with my 'sudo su' shell.
> 
> Thaks guys.
> 
> > 
> > 
> > _______________________________________________
> > Members mailing list
> > Members at kalamazoolinux.org
> > 
> > 
> _______________________________________________
> Members mailing list
> Members at kalamazoolinux.org
> 



More information about the Members mailing list