XFCE Logout Error

My xfce gives me this error everytime i try to logout:
“Received Error while trying to Log Out:
Session manager must be in idle state when requesting a shutdown”
Any solutions?

Found this

in /etc/lxdm/PostLogout

this makes sure lxdm is restarted if it crashes

if ! -z “$(pgrep lxdm)” ]
then
systemctl restart lxdm
fi

this forces users to logout

loginctl terminate-user user1 user2
Then a custom menu with:
Logoff: xfce4-session-logout --logout
Restart: systemctl reboot -i #won’t work without -i as systemctl thinks users are still logged in
Restart: systemctl halt -i #won’t work without -i as systemctl thinks users are still logged in
Marking as closed. Hope it helps someone.

source:- https://bbs.archlinux.org/viewtopic.php?pid=1251556

no answer? did you ever find out?

Me too looking for the solution.