You are not logged in.

#1 2015-06-14 06:58:52

jakub
Member
Registered: 2013-09-14
Posts: 151

xfce4-session-logout fails to react on user input

Hi,

recently some strange XFCE issue bothers me - xfce4-session-logout fails to react on my selection (but only for the first time).

So lets say I want to restart my machine; I run 'End session' button on my XFCE panel, xfce4-session-logout window appears and I choose 'restart'. Window disappears but nothing happens (all my applications are still opened and I can continue my work if I would). To restart the machine I have to repeat the action with xfce4-session-logout - then it works and laptop gets restarting.

Did anyone encounter similar issue?

Offline

#2 2015-06-14 09:59:31

respiranto
Member
Registered: 2015-05-15
Posts: 479
Website

Re: xfce4-session-logout fails to react on user input

Does it only happen if you use the 'End session' button (which I don't have, btw)?
Do all the options not work (e.g. logout which should bring you back to the CLI)?

To answer your question: No, I don't face this issue.

Offline

#3 2015-06-14 16:34:21

jakub
Member
Registered: 2013-09-14
Posts: 151

Re: xfce4-session-logout fails to react on user input

I think it doesn't work for all the options I see there (logout, shutdown, suspend, hibernate, etc.). But it behaves non-deterministic, sometimes all is fine sometimes I have to repeat the action (I just tried with suspend and it worked OK).

Offline

#4 2015-06-14 18:36:48

respiranto
Member
Registered: 2015-05-15
Posts: 479
Website

Re: xfce4-session-logout fails to react on user input

Do you get any error, when you start it from terminal in case it does not work?

Offline

#5 2015-06-16 22:18:39

jakub
Member
Registered: 2013-09-14
Posts: 151

Re: xfce4-session-logout fails to react on user input

I just ran xfce4-session-logout but once window is shown process is not printing anything in terminal (I suppose xfce4-session-logout & would act the same). Also after clicking on 'log out' option nothing happened (of course window disappeared but my session was left intact). Nothing got printed in terminal window.

Last edited by jakub (2015-06-16 22:20:31)

Offline

#6 2015-06-17 17:47:38

respiranto
Member
Registered: 2015-05-15
Posts: 479
Website

Re: xfce4-session-logout fails to react on user input

You could try using the tool from command line only (see ist manpage).

Offline

#7 2015-06-27 14:51:30

jakub
Member
Registered: 2013-09-14
Posts: 151

Re: xfce4-session-logout fails to react on user input

respiranto wrote:

You could try using the tool from command line only (see ist manpage).

Sometimes I'm using something like 

sleep 2000 && xfce4-session-logout -s

to suspend after given time. It always works fine.

Offline

#8 2015-06-28 10:35:02

jakub
Member
Registered: 2013-09-14
Posts: 151

Re: xfce4-session-logout fails to react on user input

Reported bug link

Offline

#9 2015-07-04 10:12:58

respiranto
Member
Registered: 2015-05-15
Posts: 479
Website

Re: xfce4-session-logout fails to react on user input

So without sleep, but from command line, it does not work either?
If so, is there any error printed?

Offline

#10 2015-07-04 10:18:57

jakub
Member
Registered: 2013-09-14
Posts: 151

Re: xfce4-session-logout fails to react on user input

respiranto wrote:

So without sleep, but from command line, it does not work either?
If so, is there any error printed?

It does always work from command line. I just wanted to point out, that it never failed and I use it together with sleep quite frequent.

Maybe I'll create another shortcut to session options, like a activator to xfce4-session-logout which runs in terminal and then see if anything is printed in console. Is it possible to run xfce4-session-logout in verbose mode? I dont see such option. There is only --g-fatal-warnings possible (--help-gtk prints it).

Last edited by jakub (2015-07-04 10:24:42)

Offline

#11 2015-07-04 10:30:11

jakub
Member
Registered: 2013-09-14
Posts: 151

Re: xfce4-session-logout fails to react on user input

I've added activator to

xterm -hold -e 'xfce4-session-logout --g-fatal-warnings'

Does it make sense?

Last edited by jakub (2015-07-04 10:31:34)

Offline

#12 2015-07-04 11:24:35

respiranto
Member
Registered: 2015-05-15
Posts: 479
Website

Re: xfce4-session-logout fails to react on user input

For some reason even on my system, where it works, the program quits as soon as the window is opened, so there is no chance, that any error message will be printed.
I've looked into the sourcecode, but I'm not at all familiar with gtk, so I can't say which process actually handles the window.
Also 'ps aux' does not show anything different when the window has been opened.

There is certainly a useful error-log somewhere, but I unfortunatly can't say which.

Offline

#13 2015-07-04 11:28:54

respiranto
Member
Registered: 2015-05-15
Posts: 479
Website

Re: xfce4-session-logout fails to react on user input

jakub wrote:

I've added activator to

xterm -hold -e 'xfce4-session-logout --g-fatal-warnings'

Does it make sense?

I don't know. Is '--g-fatal-warnings' a valid option? It is not mentioned in the manpage.
Anyway, the program quits directly as well with this option for me, so unless the error occurs already on startup, there is no chance to get any error printed.
So is there any error?

Offline

#14 2015-07-04 16:57:34

jakub
Member
Registered: 2013-09-14
Posts: 151

Re: xfce4-session-logout fails to react on user input

The --g-fatal-warnings is a GTK+ library option. You'll see such parameters after running

xfce4-session-logout --help-gtk

So far there is no errors printed on xterm (every time I ran my shortcut everything worked at first time, there was no need for repeating the action to suspend or logout). But as you say - I event don't know if such approach makes sense.

Offline

Board footer

Powered by FluxBB