You are not logged in.

#1 2015-02-06 17:48:18

jbaum
Member
Registered: 2015-02-06
Posts: 2

KF5 - XAUTHORITY env variable changes in the middle of the night

So after about 24 hours, I start being unable to open graphical applications.

Running something from console, I get this:
$ xterm
No protocol specified
xterm: Xt error: Can't open display: :0.0
$ ls $XAUTHORITY
ls: cannot access /tmp/xauth-1000-_0: No such file or directory
adam@t420a:~$ XAUTHORITY=~/.Xauthority xterm
[launches successfully]


I want to know what's going on and how to fix it.

Offline

#2 2015-02-06 20:17:37

Thaodan
Member
From: Dortmund, Nordrein-Westfalen
Registered: 2012-04-28
Posts: 448

Re: KF5 - XAUTHORITY env variable changes in the middle of the night

set the var in .profile?


Linux odin 3.13.1-pf #1 SMP PREEMPT Wed Mar 5 21:47:28 CET 2014 x86_64 GNU/Linux

Offline

#3 2015-02-06 22:05:44

Buddlespit
Member
From: Chesapeake, Va.
Registered: 2014-02-07
Posts: 501

Re: KF5 - XAUTHORITY env variable changes in the middle of the night

If I remember correctly (and I really hope I do, or risk looking foolish), if you open a graphical application with sudo, you end up corrupting or changing the permissions on .Xauthority. The fix is to log out of KDE, drop into/ log into console and delete .Xauthority. Don't do it from inside the GUI. There was also some buzz about half of the kf5 applications getting their configs from one config folder and the other half from a different folder... But I'm not going to wade thru 25 pages of complaints about kde5 just to figure it out. I'll leave that to you to do: https://bbs.archlinux.org/viewtopic.php?id=184439

Offline

#4 2015-02-06 22:56:40

jbaum
Member
Registered: 2015-02-06
Posts: 2

Re: KF5 - XAUTHORITY env variable changes in the middle of the night

Ok, I'm not sure if the variable itself is actually changing, I will check what it is next time I reboot. I suspect there is something that empties out /tmp periodically, no?

Then I'll have to figure out how XAUTHORITY gets set, and whether it is supposed to be set to this tmp file. I am using SLiM btw.

Offline

#5 2015-03-17 18:29:56

killruana
Member
From: France
Registered: 2014-02-12
Posts: 8

Re: KF5 - XAUTHORITY env variable changes in the middle of the night

I have the same problem since I have installed KF5/plasma5.

When I start my session, XAUTHORITY is defined with "~/.XAuthority". But some time later (few hours), the value in XAUTHORITY is "/tmp/xauth-1000-_0" and I cannot start new graphical application.
Tempory fix is to logout and login or to set XAUTHRITY with the good value in a term and start apps from it.

Someone has clues for fixing the problem?

Offline

#6 2015-03-19 23:03:15

kang
Member
Registered: 2010-08-07
Posts: 83

Re: KF5 - XAUTHORITY env variable changes in the middle of the night

For me this seems to happen when networkmanager reconnects to the wifi, when also using plasma/kf5.
Try to disconnect/reconnect to networkmanager to see if it triggers it. No solution tho, just checking if that's the same issue.

Offline

#7 2015-03-23 07:19:36

killruana
Member
From: France
Registered: 2014-02-12
Posts: 8

Re: KF5 - XAUTHORITY env variable changes in the middle of the night

NetworkManager reconnection doesn't trigger it.

Offline

#8 2016-10-12 22:09:51

kolAflash
Member
Registered: 2016-10-12
Posts: 2

Re: KF5 - XAUTHORITY env variable changes in the middle of the night

Anyone found the reason for the issue or maybe even a solution/workaround?

I'm experiencing exactly the same issue on openSUSE 42.1, using KF5/Plasma5

Opened a KDE bug report:
https://bugs.kde.org/show_bug.cgi?id=370608

Offline

#9 2016-10-14 08:51:16

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,846
Website

Re: KF5 - XAUTHORITY env variable changes in the middle of the night

Please don't necrobump, kolAflash.

https://wiki.archlinux.org/index.php/Co … bumping.22

Closing.

EDIT: KolAflash kindly reported back with their findings chasing their problem, and asked me to share their findings here in case it helps others:

KolAflash wrote:

I found a solution to that thread. (at least for openSUSE - but it seemed to be the same problem on Arch Linux).
https://bbs.archlinux.org/viewtopic.php?id=193273

So because there was never a solution being posted in that thread, it would probably make sense to attach the following to put the thread to an proper end.
--
https://bugzilla.suse.com/show_bug.cgi?id=1006239
https://bugs.kde.org/show_bug.cgi?id=370608#c6

On openSUSE it's the file /etc/tmpfiles.d/tmp.conf and systemd-tmpfiles-clean.timer which are deleting the file /tmp/xauth-1000-_0 periodically.

Last edited by WorMzy (2016-10-21 19:20:33)


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

Board footer

Powered by FluxBB