[CentOS] Getting confirmation for power button

Thu Apr 25 15:19:20 UTC 2013
John Doe <jdmls at yahoo.com>

From: "Vanhorn, Mike" <michael.vanhorn at wright.edu>

> Yes, and that works fine, *if* the user is logged in. But what about when
> the workstation is sitting there at the login window? At that point, when
> the action from power.conf is taken, there is no power manager, so it does
> the shutdown. 
> I'm wanting to get a prompt in that situation, too.

Maybe try (untested):
  sudo -u gdm gconftool-2 -g /apps/gnome-power-manager/action_button_power
  sudo -u gdm gconftool-2 -s /apps/gnome-power-manager/action_button_power -t string interactive
  sudo -u gdm gconftool-2 -g /apps/gnome-power-manager/action_button_power

JD