Do not restart local display manager when halting/rebooting
@vuntz
Submitted by Vincent Untz Link to original bug (#599180)
Description
Created attachment 145946 Look at the runlevel before managing the display again
In gdm-static-display.c, I can see that the display manager is restarted once it has exited. However, this is quite useless when the computer is shutting down or rebooting -- I guess it even slows down this a bit.
It's quite simple to look at the current runlevel, and if it's 0 (shutdown) or 6 (reboot), we can just decide to not do this.
See the attached patch.
Patch 145946, "Look at the runlevel before managing the display again":
gdm-look-at-runlevel.patch