Starting applications from command line?

All,
I am a redhat admin and also use Ubuntu. Installed opensuse on my home machine to give it a whirl. I can’t seem to figure out why i can’t open gui application from the command line.

I receive a GTK error when trying to open with sudo. What am i doing wrong?

EDIT: NM solved my own question, had to add DISPLAY and XAUTHORITY to the sudoers file.

Sudo may not be configured. I have never had any problem opening a console as a user and entering the application name there. If it requires root privileges, I enter su – give the password and then the application name.

Hi,

if you use KDE, kdesu <application> will generally be the best way to start a graphical application requiring root privileges from the command line.

There is an equivalent for Gnome, the name of which escapes me right now.

HTH

Lenwolf

If I remember correctly it is just gnomesu.

Correct, kdesu and gnomesu will take care of the DISPLAY and xhost issues.

On 2011-02-20 22:06, markdjones82 wrote:

> EDIT: NM solved my own question, had to add DISPLAY and XAUTHORITY to
> the sudoers file.

Could you explain what you did?


Cheers / Saludos,

Carlos E. R.
(from 11.2 x86_64 “Emerald” at Telcontar)