[gpm] Inhibit questions...
- From: Diego Amor <diego amor gmail com>
- To: gnome-power-manager-list gnome org
- Subject: [gpm] Inhibit questions...
- Date: Mon, 13 Sep 2010 12:38:38 -0300
Hi, i tried to do a script in python emulating inhibit procces like applet...
I tried to connect:
DBUS_SERVICE: 'org.freedesktop.PowerManager'
DBUS_PATH : '/org/freedesktop/PowerManager/Inhibit
But give me an error... :(
I tried to search with D-Bus explorer on org.gnome.PowerManager but i
not find Inhibit ... :(
I download the code and i found a call that i believe set the inhibit...
ret = dbus_g_proxy_call (applet->proxy, "Inhibit", &error,
G_TYPE_STRING, appname,
G_TYPE_UINT, 0, /* xid */
G_TYPE_STRING, reason,
G_TYPE_UINT, 1+2+4+8, /* logoff,
switch, suspend, and idle */
G_TYPE_INVALID,
G_TYPE_UINT, cookie,
G_TYPE_INVALID);
but i not understand how i need to set inhibit to powersaving...
JAaaaaaaaa someone help me?
Thank... SORRY MY HORRIBLE ENGLISH!
--
--------------------------------
Diego Amor
diego amor gmail com
--------------------------------
"law of the star"
........................................
"to explore strange new worlds; to seek out new life and new
civilizations; to boldly go where no man has gone before"
Captain James T. Kirk
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]