Hi all,

When the desktop is starting, gnome-panel/gnome-session depends on
gnome-power-manager to check if the shutdown menu entry should be shown.
But if the check is performed before gnome-power-manager is started, the
check will fail. So the menu entry will be missing. 

The attached patch fixes the shutdown menu entry missing problem for
gnome2.26 by making the gnome-session call chkauthattr directly to check
the user has properly privilege to shutdown/reboot the system. So we can
avoid gnome-panel/gnome-session's dependency to gnome-power-manager when
the desktop is starting. The patch also makes gnome-power-manager
auto-restartable, so even if it's killed by mistake, the user can still
shutdown the system with no problem.

This is a branding patch because, for linux, gnome-panel/gnome-session
just depends on consolekit to reboot/shutdown the system and
gnome-power-manager is only used for hibernate/suspend. When consolekit
goes in we can remove this patch.

Regards,

Jedy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.diff
Type: text/x-patch
Size: 6698 bytes
Desc: not available
URL: 
<http://mail.opensolaris.org/pipermail/jds-review/attachments/20090422/99b51f89/attachment.bin>

Reply via email to