I am having the same issue on Ubuntu 16.04 LTS. I am not able to logout.
Juhala actually gave me an interesting clue.
I notice that:
gnome-session-quit --logout doesn't work
BUT
gnome-session-quit --logout --no-prompt works well.
So may be, it doesn't work because the system is waiting for a confirmation dialog to be closed.
That's why the first time you launched the previous command, nothing happens and the next times, the following error occurs:
Error org.gnome.SessionManager.NotInRunning: Logout interface is only available during the Running phase
On my environment, there is a workaround if you don't mind not having a confirmation dialog before logout. You have to deactivate the prompt. In order to implement that, you can add the following line :
gsettings set org.gnome.SessionManager logout-prompt false
Hi all,
I am having the same issue on Ubuntu 16.04 LTS. I am not able to logout.
Juhala actually gave me an interesting clue.
I notice that: session- quit --logout doesn't work
gnome-
BUT session- quit --logout --no-prompt works well.
gnome-
So may be, it doesn't work because the system is waiting for a confirmation dialog to be closed. SessionManager. NotInRunning: Logout interface is only available during the Running phase
That's why the first time you launched the previous command, nothing happens and the next times, the following error occurs:
Error org.gnome.
On my environment, there is a workaround if you don't mind not having a confirmation dialog before logout. You have to deactivate the prompt. In order to implement that, you can add the following line :
gsettings set org.gnome. SessionManager logout-prompt false
at the end of ~/.bashrc