Kaydet (Commit) 9ef8cbc3 authored tarafından Gökçen Eraslan's avatar Gökçen Eraslan

Set timeout to infinite to get rid of weird vapourings of polkit-gnome.

üst 3569f778
......@@ -81,7 +81,7 @@ policy_check(const char *sender, const char *action, int *result)
PyTuple_SetItem(obj, 3, PyInt_FromLong((long) 1));
PyTuple_SetItem(obj, 4, PyString_FromString("abc"));
PyObject *ret = bus_execute2(conn, "org.freedesktop.PolicyKit1", "/org/freedesktop/PolicyKit1/Authority", "org.freedesktop.PolicyKit1.Authority", "CheckAuthorization", obj, 25, "(sa{sv})sa{ss}us");
PyObject *ret = bus_execute2(conn, "org.freedesktop.PolicyKit1", "/org/freedesktop/PolicyKit1/Authority", "org.freedesktop.PolicyKit1.Authority", "CheckAuthorization", obj, -1, "(sa{sv})sa{ss}us");
if (PyTuple_GetItem(ret, 0) == Py_True) {
*result = POLICY_YES;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment