Mailinglist Archive: opensuse-factory (536 mails)

< Previous Next >
Re: [opensuse-factory] TW: su -; DISPLAY missing; .Xauthority 0 bytes
On Fri, 2018-05-18 at 07:38 -0600, Cameron Seader wrote:
:-)

On 05/18/2018 12:56 AM, Dominique Leuenberger / DimStar wrote:
On Thu, 2018-05-17 at 17:10 -0600, Cameron Seader wrote:
Team,
Not sure which update this happened in, but in TW you no longer get the
DISPLAY variable set when issuing an su - command. Also the .Xauthority
files seems empty as well when you switch to the root user. I now have
to copy my .Xauthority file over from my standard user account and then
export my DISPLAY variable to run gfx tools as root user.
Thoughts as to why this has now changed.
Thanks,

I could say something stupid like: this is normal when you login on a
text console - and it'd be as accurate as any answer one could give.

You should at least describe your setup, like what DM, what DE... don't
expect we can guess all this info

(and I for one can't reproduce this on my machine)


Well you could say that yes. :-) Fair enough. I'm running TW with KDE
for quite a long time just rolling my updates with zypper dup weekly.

That for one is a major difference between your usage and mine and
makes my testing useless for you: I run a GNOME/wayland session here.

This has never been a problem in the past. I've always been able to
execute su - and the xauthority and DISPLAY have always been available.

This should still be possible: not too long ago there was actually a
push to get wayland sessions usable with 'root running applications' in
openSUSE.

So I quickly suspected something in packages that may have changed, but
if your not getting the same thing or if this is really expected
behavior and mine was just a fluke for the past few years well then so
be it. So i guess my question comes to. What is the expected default
behavior since my expectation seems to be skewed.

On Plasma (with sddm) the xauth should be working indeed. Either the
KDE Maintainers can help you debug here on list or you might file a bug
to get things checked out structurally.

Cheers,
Dominique
< Previous Next >
Follow Ups