The commands with xfce4-session-logout don't always work, at least not for --halt. Instead it just logs out.
Console output? Using HAL or sudo helper?
** (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.
(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?
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.
(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.
*** Bug 1075 has been marked as a duplicate of this bug. ***
(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.
(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.
`xfce4-session-logout --reboot` also leads to logout.
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.