! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-session-logout --halt does not work
Status:
RESOLVED: FIXED
Product:
Xfce4-session
Component:
General

Comments

Description Mike Massonnet editbugs 2009-03-03 18:23:40 CET
The commands with xfce4-session-logout don't always work, at least not for --halt. Instead it just logs out.
Comment 1 Brian J. Tarricone (not reading bugmail) 2009-03-03 20:11:13 CET
Console output?  Using HAL or sudo helper?
Comment 2 Mike Massonnet editbugs 2009-03-05 08:47:33 CET
** (xfce4-session:3451): WARNING **: No shutdown helper attached!

which is kinda weird since it works when I pass through the logout prompt. I have my user working with sudo and hal.
Comment 3 Brian J. Tarricone (not reading bugmail) 2009-03-05 21:32:56 CET
(In reply to comment #2)
> ** (xfce4-session:3451): WARNING **: No shutdown helper attached!

Strange, not sure what would cause this.

> which is kinda weird since it works when I pass through the logout prompt. I
> have my user working with sudo and hal.

But which is it actually using?
Comment 4 Mike Massonnet editbugs 2009-03-06 00:29:45 CET
I had a look at the source, and it's not obvious. I know it works with HAL, I don't catch the "hal not setup properly [...]" messages. I have one opinion of what causes it. The shutdown_helper variable may only be set while setting up the gui for the prompt. So for instance the following scenario should work, and I remember doing this, setup a new user without sudo, open the prompt, you can't click some buttons, now close the prompt and allow the user to sudo, now reopen the dialog and the buttons are clickable.

It's just a thought, and it's the only one I have on this.
Comment 5 Ali Abdallah editbugs 2009-04-20 07:27:10 CEST
(In reply to comment #0)
> The commands with xfce4-session-logout don't always work, at least not for
> --halt. Instead it just logs out.

Same for me.
Comment 6 Jérôme Guelfucci editbugs 2010-02-26 23:45:57 CET
*** Bug 1075 has been marked as a duplicate of this bug. ***
Comment 7 Mike Massonnet editbugs 2010-02-27 00:34:10 CET
(In reply to comment #6)
> *** Bug 1075 has been marked as a duplicate of this bug. ***

Just a short remark about duplicates, you mark them from newer ids against olders and keep always the oldest.
Comment 8 Mike Massonnet editbugs 2010-05-24 10:05:03 CEST
(In reply to comment #4)
> I had a look at the source, and it's not obvious. I know it works with HAL, I
> don't catch the "hal not setup properly [...]" messages. I have one opinion of
> what causes it. The shutdown_helper variable may only be set while setting up
> the gui for the prompt. So for instance the following scenario should work, and
> I remember doing this, setup a new user without sudo, open the prompt, you
> can't click some buttons, now close the prompt and allow the user to sudo, now
> reopen the dialog and the buttons are clickable.
> 
> It's just a thought, and it's the only one I have on this.

What I actually ment, it looks like a variable is set only when the logout dialog gets shown and this variable is useful for sending proper halt/restart/whatever command; using the command line doesn't set this variable.
Comment 9 Cheese Russian 2010-12-24 16:05:37 CET
`xfce4-session-logout --reboot` also leads to logout.
Comment 10 Jérôme Guelfucci editbugs 2010-12-30 09:18:54 CET
Fixed in git master, the shutdown helper in xfsm_shutdown was never initialized if the dialog was not shown and the program exited with EXIT_FAILURE.

Bug #5032

Reported by:
Mike Massonnet
Reported on: 2009-03-03
Last modified on: 2010-12-30

People

Assignee:
Jérôme Guelfucci
CC List:
5 users

Version

Attachments

Additional information