On Fri, 17 Jun 2016 15:21:23 +0200 Maximiliano Curia
<m...@gnuservers.com.ar> wrote:
>  up_client = UPowerGlib.Client()
>  has_lid = up_client.get_lid_is_present()
> ------------
> 
> With the new version that snippet segfaults. I'm not well versed in the gi 
> internals but it seems to me that UPowerGlib.Client() is not creating a new 
> instance, probably related to the fact that it used to be a singleton, I'm 
> not 
> sure.
> 
> Using the similar version:
>  import gi
>  gi.require_version('UPowerGlib', '1.0')
>  from gi.repository import UPowerGlib
> 
>  up_client = UPowerGlib.Client.new()
>  has_lid = up_client.get_lid_is_present()
> -------------
> 
> Works as expected in both versions, so I'll probably patch this in the next 

This was a deliberate change afaics:
https://cgit.freedesktop.org/upower/commit/?id=29c5c85f6bf2a163c8713641dba634910ee3cf49

Using UPowerGlib.Client.new() seems indeed to be the way to go.

Maxy, should we reassign the bug back to cinnamon-settings?

I've checked codesearch.debian.net and cinnamon-settings seems to be the
only package which is affected.

Regards,
Michael
-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to