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?
-
Have the same problem on 16.04 LTS. – Vladius Jun 18 '16 at 13:49
-
I have the same problem after I installed plank in Ubuntu 16.04 – rancho Aug 10 '16 at 19:08
3 Answers
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
-
This seems a bit far fetched, considering that we don't know, if OP uses either of these. – David Foerster Aug 01 '15 at 19:14
-
I 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 Aug 01 '15 at 23:27
-
Adding that I did a sudo apt-get install lightdm --reinstall and even a purge and reinstall, both failed to fix my problem. – Mad Man Aug 01 '15 at 23:36
-
In fact, i'm using Plank, a similar program. Is there a alternative? – Hugo Andrade Aug 02 '15 at 01:03
-
I'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. – Mad Man Aug 02 '15 at 01:09
-
Removing 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 – Hugo Andrade Aug 02 '15 at 01:28
-
X-GNOME-Autostart-Delay=20 before the line X-GNOME-Autostart-enabled=true – Mad Man Aug 02 '15 at 01:30
-
-
Still 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. – gorlok Jan 30 '16 at 14:23
-
I wonder why is this actually happening? What's the problem behind all this? – Vladius Jun 18 '16 at 13:53
-
-
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.

- 33,355
- 17
- 105
- 120
-
It'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. – André M. Faria Jul 25 '20 at 03:21
This is a common problem caused when you add plank, docky or some other such docks to the startup spplications. This problem can easily be corrected by having a delay of a few seconds between the logging in and the starting of the application.
This delay can be added easily through the terminal. For example, for docky, you can use the commands:
cd ~/.config/autostart
nano docky.desktop
add
X-GNOME-Autostart-Delay=20
or you can just remove such a program from autostart.

- 4,298