Martin Pitt
821ecf9125
Check PolicyKit in client's can_{suspend,hibernate} properties
...
Check for PK privileges in UpClient's can_{suspend,hibernate} properties, so
that clients like gnome-session or gnome-power-manager hide the related actions
if the admin or OEM disabled suspend/hibernate through a PolicyKit .pkla file
like
$ cat /etc/polkit-1/localauthority/50-local.d/disable-suspend.pkla
[Disable suspend]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no
ResultAny=no
https://bugs.freedesktop.org/show_bug.cgi?id=26473
2010-02-09 10:42:38 +00:00
Richard Hughes
acfe9c3089
Update the Free Software Foundation address
2010-01-27 16:27:15 +00:00
Richard Hughes
b8a200eb48
Make DkpClient a singleton to avoid some weird race conditions
2010-01-25 14:25:37 +00:00
Richard Hughes
d27c836e97
Rename the DBus service from org.freedesktop.DeviceKit.Power to org.freedesktop.UPower
2010-01-18 16:53:12 +00:00
Richard Hughes
8362088d12
trivial: rename some internal defines for the upower move
2010-01-18 14:04:24 +00:00
Richard Hughes
cbabe54705
trivial: use g_set_error() in more places
2010-01-17 23:10:14 +00:00
Martin Koegler
725acd4d35
Prevent segementation fault, if connection to system dbus fails
...
Signed-off-by: Martin Koegler <mkoegler@auto.tuwien.ac.at>
2009-12-22 10:50:38 +00:00
Richard Hughes
b00791b9bf
Add g_object_notify() calls for properties on DkpClient
2009-10-14 10:53:35 +01:00
Richard Hughes
1587fc5758
Convert the property names to be FirstLetterCaps rather than dash-dash so KDE people can use the DBus interface
2009-09-18 18:28:53 +01:00
Richard Hughes
db41483230
I must learn to spell deprecated...
2009-07-03 11:05:00 +01:00
Richard Hughes
0a5149ea6a
Protect the non-GObject accessors with DKP_DISABLE_DEPRECIATED and fix up the client tool
2009-07-03 10:52:24 +01:00
Richard Hughes
e827a73922
Remove dkp_client_get_lid_is_present(), we want to encourage people to be using g_object_get
2009-07-03 10:43:15 +01:00
Richard Hughes
56881f8eaf
Add a lid-is-present property
2009-07-02 17:51:27 +01:00
Ali Abdallah
b762899c60
Fix up some issues in DkpClient, and expose GObject properties
...
Signed-off-by: Richard Hughes <richard@hughsie.com>
2009-05-06 17:12:28 +01:00
Richard Hughes
7bd2dfefcb
Add a property lid-is-closed so that we can finally drop the HAL dep in g-p-m and x-p-m
2009-05-05 12:51:26 +01:00
Richard Hughes
dccd5fc898
Ignore method timeouts when we suspend and hibernate
2009-04-25 11:07:30 +01:00
Richard Hughes
c97698adf9
Ensure we get properties on devices correctly that have not yet been changed
2009-04-22 16:44:31 +01:00
Richard Hughes
4fb78bb9f5
trivial: add lots of GErrors to the gobject library, and avoid using egg_warning
2009-02-27 13:18:57 +00:00
Richard Hughes
d2c0ee6412
move the library directory from libdevkit-power to devkit-power-gobject
2009-02-27 12:22:06 +00:00