Shutdown button only logs out ubuntu 15.04
Solution 1
If you have docky installed this fixed the problem for both of my machines.
Ubuntu 15.04 Unity + Docky, Plank, or Cairo-Dock
(DOCKY)
cd ~/.config/autostart
nano docky.desktop
add X-GNOME-Autostart-Delay=20
(IF YOU USE CAIRODOCK)
cd ~/.config/autostart
nano cairo-dock.desktop
add X-GNOME-Autostart-Delay=20
Or you can just remove either one from autostart.
Example docky.desktop
[Desktop Entry]
Type=Application
Exec=docky
Hidden=false
NoDisplay=false
X-GNOME-Autostart-Delay=20
X-GNOME-Autostart-enabled=true
Name[en_US]=Docky
Name=Docky
Comment[en_US]=
Comment=
(IF YOU USE PLANK)
cd ~/.config/autostart
nano plank.desktop
add X-GNOME-Autostart-Delay=20
For example: cat ~/.config/autostart/plank.desktop
[Desktop Entry]
Type=Application
Exec=/usr/bin/plank
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
X-GNOME-Autostart-Delay=20
Name=Plank
Note: Still happens on Ubuntu 15.10
Solution 2
Here is a less-command method for fix this issue.
1.First you have to install unity tweak tool.
2.Then open it and go to "Security" tab under "System" section
3.You can see that "User log out" option is checked, Unckeck it.
4.Restart your PC.
Related videos on Youtube
Hugo Andrade
Updated on September 18, 2022Comments
-
Hugo Andrade over 1 year
Since i upgraded to Ubuntu 15.04, if i click on the shutdown button it only logs out and i have to click again on the shutdown button (from the ubuntu login screen) to power off the pc. How can i fix this?
-
Vladius almost 8 yearsHave the same problem on 16.04 LTS.
-
rancho over 7 yearsI have the same problem after I installed plank in Ubuntu 16.04
-
-
David Foerster almost 9 yearsThis seems a bit far fetched, considering that we don't know, if OP uses either of these.
-
Mad Man almost 9 yearsI had the same problem as the OP. I read Unity's shutdown/restart dialogue is not working when another application is registered to LauncherEntry interface of Unity DBus. -- This was for cairo-dock so I tried it with DOCKY on my 2 machines. THIS DID fix the problem for me. I'm only offering what worked for me.
-
Mad Man almost 9 yearsAdding that I did a sudo apt-get install lightdm --reinstall and even a purge and reinstall, both failed to fix my problem.
-
Mad Man almost 9 yearsI'm sorry I forgot about adding plank to that list. try editing Plank.desktop and adding the delay in it. You can open startup applications and just disable it temporarily and reboot to test if plank is causing the problem. Remember to REBOOT after making any changes.
-
Hugo Andrade almost 9 yearsRemoving from startup applications solve the problem but changing the file don't. [Desktop Entry] Type=Application Exec=plank Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name[en_US]=Plank Dock Name=Plank Dock Comment[en_US]= Comment= X-GNOME-Autorstart-Delay=20
-
Mad Man almost 9 yearsX-GNOME-Autostart-Delay=20 before the line X-GNOME-Autostart-enabled=true
-
Hugo Andrade almost 9 yearsProblem Solved!
-
gorlok over 8 yearsStill happens on Ubuntu 15.10 with Plank, Docky, or Cairo-dock :P Workaround stills works: add X-GNOME-Autostart-Delay=20 to ~/.config/autostart/plank.desktop or whatever.
-
Vladius almost 8 yearsI wonder why is this actually happening? What's the problem behind all this?
-
SaidbakR almost 7 yearsI have used it with Plank and Ubuntu 16.04 and it worked perfect.
-
adadion about 6 yearsNot working for me. (Plank in Ubuntu 16.04)
-
Mustafa Lokhandwala almost 4 yearsIt's really strange that if you mark to remove log out, it move the log out to shutdown and remove shutdown and reboot, but worked for me.