13 Sep 2010 17:38
[gpm] Inhibit questions...
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
(Continue reading)
RSS Feed