if (error->code == G_DBUS_ERROR_ACCESS_DENIED) {
warn("Access Denied");
g_error_free(error);
- return g_strdup("No access rights");
+ return g_strdup("AccessDenied");
} else {
warn("dbus error = %d (%s)", error->code, error->message);
g_error_free(error);
data = get_property(handle, property, G_VARIANT_TYPE_INT32);
if (!data)
return TAPI_API_OPERATION_FAILED;
- else if (!g_strcmp0(data, "No access rights"))
+ else if (!g_strcmp0(data, "AccessDenied"))
return TAPI_API_ACCESS_DENIED;
*result = atoi(data);
data = get_property(handle, property, G_VARIANT_TYPE_STRING);
if (!data)
return TAPI_API_OPERATION_FAILED;
- else if (!g_strcmp0(data, "No access rights"))
+ else if (!g_strcmp0(data, "AccessDenied"))
return TAPI_API_ACCESS_DENIED;
*result = data;