When attempting to use a custom activation of a lens result in a scope written in python, Unity.ActivationResponse does not work as advertised at https://wiki.ubuntu.com/Unity/Lenses#Handling_Activation, which suggests that the line Unity.ActivationResponse.new(Unity.HandledType.SHOW_DASH) should pass a response to keep the dash open. Instead, an error in generated suggesting that a second argument needs to be passed to the function. On adding a second argument, the error further suggests that it needs to be a string. On using a string, the following error is generated:
Similar errors are generated when using other "Unity.Handletype"s (although using NOT_HANDLED only produces the TypeError part, not any of the warnings.)
When attempting to use a custom activation of a lens result in a scope written in python, Unity.Activatio nResponse does not work as advertised at https:/ /wiki.ubuntu. com/Unity/ Lenses# Handling_ Activation, which suggests that the line Unity.Activatio nResponse. new(Unity. HandledType. SHOW_DASH) should pass a response to keep the dash open. Instead, an error in generated suggesting that a second argument needs to be passed to the function. On adding a second argument, the error further suggests that it needs to be a string. On using a string, the following error is generated:
TypeError: can't convert return value to desired type lens.py: 100: Warning: g_object_get_qdata: assertion G_IS_OBJECT (object)' failed GObject. MainLoop( ).run() lens.py: 100: Warning: g_object_ set_qdata_ full: assertionG_ IS_OBJECT (object)' failed GObject. MainLoop( ).run() lens.py: 100: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed GObject. MainLoop( ).run()
../pathtolens/
../pathtolens/
../pathtolens/
Similar errors are generated when using other "Unity.Handletype"s (although using NOT_HANDLED only produces the TypeError part, not any of the warnings.)
This issue is also described at http:// askubuntu. com/questions/ 78826/cant- get-activate- uri-signal- working- when-making- a-lens