You are not logged in.

#1 2021-03-18 10:02:00

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,366

XFCE4 logout dialogue appearing at startup

I have no idea what can cause this, but all of a sudden, more often than not (though not 100% of the time), the xfce4 logout dialogue is appearing at startup.

Pressing escape dismisses it, but it shouldn't be there in the first place.

This has only started in the past couple of weeks, and no clue why.

For good measure, I cleared saved sessions just in case.

Does anyone have any ideas where to look.

My google-fu has failed me on this occasion.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#2 2021-03-18 14:18:21

archimboldo
Member
Registered: 2016-03-07
Posts: 232

Re: XFCE4 logout dialogue appearing at startup

Just a guess, have you checked the content of  ~/.config/autostart/ ?


Rules for problems.
Everyone has problems. Animals have problems. And buildings. And cats, and trees.
Problems are your friends. Treat them well.

Offline

#3 2021-03-19 06:28:12

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,366

Re: XFCE4 logout dialogue appearing at startup

Yes, and there's nothing there to explain it (and in fact if there were I would expect it to happen on every boot, and not just some).

It's a conundrum, alright.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#4 2021-03-19 08:12:26

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,550

Re: XFCE4 logout dialogue appearing at startup

Do you have a logout shortcut and maybe spurious keyboard events?

Or maybe an overzealous session restorage (because you ran the logout dialog when logging out of the former session…)?

On a re-read Roken actually wrote:

For good measure, I cleared saved sessions just in case.

However, did it (temporarily) go away and also tried https://wiki.archlinux.org/index.php/Xf … d_sessions ?

Offline

#5 2021-03-19 11:15:35

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,366

Re: XFCE4 logout dialogue appearing at startup

Nope, completely clearing saved sessions and disabling saved sessions per your link have no effect.

For the moment I've worked around by writing a script replaces /usr/bin/xfce4-session-logout (which has been moved to my scripts directory and renamed), which checks if the system has been on for less than 1 minute. If it has, it exits, and if not, hands over to the renamed binary.

I suppose I could put something in the script to delay things so that I can see if there's a parent process that will give me a clue.

EDIT: Well that didn't work. Although the script does work, I'm still getting the logout prompt, and not via the xfce4-session-logout dialogue hmm

EDIT2: proven that it's not via the binary. I replaced my /usr/bin/xfce4-session-logout script with one which just triggers a notification and does nothing else. No notification but the logout dialogue is still appearing.

Last edited by Roken (2021-03-19 11:30:16)


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#6 2021-03-19 12:38:36

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,550

Re: XFCE4 logout dialogue appearing at startup

There's a good chance that running "xprop _NET_WM_PID" and clicking the dialog will get you the clients PID.

Pot. obstacles:
1. you cannot run a terminal while the dialog is there, move to a different VT and don't forget to "export DISPLAY=:0"
2. The dialog grabs the pointer and you cannot have xprop click it. "wmctrl -l" will get you a list of windows and you can pass that to "xprop -id 0x123456"

Offline

#7 2021-03-20 05:53:23

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,366

Re: XFCE4 logout dialogue appearing at startup

I tried wmctrl. which doesn't even seem to see the dialogue, though I'll try with xprop and see if I have more luck.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#8 2021-03-20 07:35:52

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,550

Re: XFCE4 logout dialogue appearing at startup

Override redirect window?

xwininfo -root -tree

prints a longish list of all windows.

Offline

#9 2021-03-20 11:37:16

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,366

Re: XFCE4 logout dialogue appearing at startup

I have a short script to extract the window ID (using xprop as you suggested) which then interrogates ps for child processes. Just waiting for it to come up at boot again. With that, I'll be able to also find the parent process.

Of course, as sod's law suggests, it hasn't happened since, but I'll report back when it does. It's not as if I can artificially invoke it since I don't even know how it's being invoked at boot, let alone where from.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#10 2021-03-21 08:39:47

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,366

Re: XFCE4 logout dialogue appearing at startup

Well the direct parent is the display manager (as expected), and it's not peculiar to one display manager.

I'm genuinely stumped.


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#11 2021-03-21 12:00:03

Ferdinand
Member
From: Norway
Registered: 2020-01-02
Posts: 338

Re: XFCE4 logout dialogue appearing at startup

Uhm.. just to take it out of the box a bit... you haven't by any chance got a mechanical fault - like a power key or lock key on the keyboard that somehow is getting worn, loose, too much Coca Cola, or something, that somehow causes it to trigger the logout dialogue?

Offline

#12 2021-03-21 12:33:41

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,550

Re: XFCE4 logout dialogue appearing at startup

Parent window, parent process or _NET_WM_PID ?
It'd be a bit odd for different DMs to trigger the same session related logout dialogs…

Offline

#13 2021-03-22 06:07:28

Roken
Member
From: South Wales, UK
Registered: 2012-01-16
Posts: 1,366

Re: XFCE4 logout dialogue appearing at startup

There is no mechanical fault, and in fact the front panel (with the power button) on my machine is less than 6 months old.

Getting _NET_WM_PID and then grepping that with ps tells me the PID of the parent process, which in both cases was the DM (LXDM and LightDM tested).


Ryzen 5900X 12 core/24 thread - RTX 3090 FE 24 Gb, Asus B550-F Gaming MB, 128Gb Corsair DDR4, Fractal Design Define 7 XL, 5 HD (2 NvME PCI, 4SSD) + 1 x optical.
Linux user #545703

/ is the root of all problems.

Offline

#14 2021-03-22 06:31:01

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 77,550

Re: XFCE4 logout dialogue appearing at startup

seth wrote:

It'd be a bit odd for different DMs to trigger the same session related logout dialogs…

Do you get the dialog w/
a) a different user
b) a different session (eg. icewm or openbox)

Is the dialog actually an interactive thing, ie. can you click it to log out of the session?

Offline

Board footer

Powered by FluxBB