On one machine, I can not su and run graphical apps.

Hi,

On one machine, running 13.1 32 bits, with XFCE (or LXDE, if I remember
the name right), I get (typed):


su -
leafpad
leafpad: Can not open display:

(the text is hand copied from the other machine, for obvious reasons (no
forum access there)).

Leafpad is just an example application, all graphical apps fail.

The problem is the same with any user, not only root. Like “su -
anyuser”. There is no “DISPLAY” var.

But, if I do:


ssh anyuser@localhost

Everything runs perfectly. Also, doing:


su -
DISPLAY=:0 leafpad

works.

So… what is making the DISPLAY variable to be unset?
Perhaps the default “sudoers” settings are wrong? :-?


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)

On 2014-10-20 12:25, Carlos E. R. wrote:

> So… what is making the DISPLAY variable to be unset?
> Perhaps the default “sudoers” settings are wrong? :-?

Oops. Not sudoers. Wrong file, does not apply to “su”.


Cheers / Saludos,

Carlos E. R.
(from 13.1 x86_64 “Bottle” at Telcontar)