gnome-power-manager r3011 - in trunk: . src
- From: rhughes svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-power-manager r3011 - in trunk: . src
- Date: Mon, 6 Oct 2008 14:24:19 +0000 (UTC)
Author: rhughes
Date: Mon Oct 6 14:24:19 2008
New Revision: 3011
URL: http://svn.gnome.org/viewvc/gnome-power-manager?rev=3011&view=rev
Log:
2008-10-06 Richard Hughes <richard hughsie com>
* src/gpm-control.c: (gpm_control_allowed_shutdown),
(gpm_control_allowed_reboot):
Correct the name of the HAL PolicyKit methods now the deprecated names
are no longer valid.
Modified:
trunk/ChangeLog
trunk/src/gpm-control.c
Modified: trunk/src/gpm-control.c
==============================================================================
--- trunk/src/gpm-control.c (original)
+++ trunk/src/gpm-control.c Mon Oct 6 14:24:19 2008
@@ -225,7 +225,7 @@
g_return_val_if_fail (can, FALSE);
*can = FALSE;
fg = gpm_control_check_foreground_console (control);
- polkit_ok = gpm_control_is_user_privileged (control, "hal-power-shutdown");
+ polkit_ok = gpm_control_is_user_privileged (control, "org.freedesktop.hal.power-management.shutdown");
if (polkit_ok && fg) {
*can = TRUE;
}
@@ -249,7 +249,7 @@
g_return_val_if_fail (can, FALSE);
*can = FALSE;
fg = gpm_control_check_foreground_console (control);
- polkit_ok = gpm_control_is_user_privileged (control, "hal-power-reboot");
+ polkit_ok = gpm_control_is_user_privileged (control, "org.freedesktop.hal.power-management.reboot");
if (polkit_ok && fg) {
*can = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]