[PATCH] up-device-supply.c: Fix #27902 Bug - Daemon Segmentation Fault

Richard Hughes hughsient at gmail.com
Fri Jul 2 05:17:20 PDT 2010


On 2 July 2010 12:23, Mariusz Ceier <mceier at gmail.com> wrote:
> diff --git a/src/org.freedesktop.UPower.Device.xml b/src/org.freedesktop.UPower.Device.xml
> index 7c9a65b..d9bee54 100644
> --- a/src/org.freedesktop.UPower.Device.xml
> +++ b/src/org.freedesktop.UPower.Device.xml
> @@ -95,11 +95,11 @@ method return sender=:1.386 -> dest=:1.477 reply_serial=2
>       )
>       dict entry(
>          string "time-to-empty"
> -         variant             int64 0
> +         variant             uint64 0
>       )
>       dict entry(
>          string "time-to-full"
> -         variant             int64 0
> +         variant             uint64 0
>       )

I don't think you can just change the types like that. TimeToEmpty is
defined as a INT64 and changing it to a UINT64 is going to break a lot
of already working apps.

Richard.


More information about the devkit-devel mailing list