[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
** Changed in: unity (Ubuntu Precise) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
** Changed in: unity (Ubuntu) Status: New => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
** No longer affects: libunity (Ubuntu Quantal) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
** Changed in: libunity Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
This bug was fixed in the package libunity - 5.12.0-0ubuntu1.1 --- libunity (5.12.0-0ubuntu1.1) precise-proposed; urgency=low * debian/patches/fix_893688.patch: - fix the Unity-5.0.gir file to produce a correct typelib (LP: #893688) * debian/rules: - added the quilt patching method to dh rules * debian/control: - added quilt dependency - direct Vcs-Bzr to the right branch -- Lukasz 'sil2100' ZemczakMon, 25 Jun 2012 11:02:07 +0200 ** Changed in: libunity (Ubuntu Precise) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
verified, the update fixes the issue ** Tags removed: verification-needed ** Tags added: verification-done -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
Hello Mark, or anyone else affected, Accepted libunity into precise-proposed. The package will build now and be available at http://launchpad.net/ubuntu/+source/libunity/5.12.0-0ubuntu1.1 in a few hours and then in the -proposed repository. Please help us by testing this new package. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Your feedback will aid us getting this update out to other Ubuntu users. If this package fixes the bug for you please change the bug tag from verification-needed to verification-done. If it does not, change the tag to verification-failed. In either case details of your testing will help us make a better decision. Further information regarding the verification process can be found at https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in advance! ** Changed in: libunity (Ubuntu Precise) Status: Fix Released => In Progress ** Changed in: libunity (Ubuntu Precise) Status: In Progress => Fix Committed ** Tags added: verification-needed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
** Changed in: libunity (Ubuntu Precise) Status: Triaged => Fix Committed ** Changed in: libunity (Ubuntu Precise) Status: Fix Committed => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
This bug was fixed in the package libunity - 5.12.0-0ubuntu2 --- libunity (5.12.0-0ubuntu2) quantal; urgency=low * debian/patches/fix_893688.patch: - fix the Unity-5.0.gir file to produce a correct typelib (LP: #893688) * debian/rules: - added the quilt patching method to dh rules * debian/control: - added quilt dependency - direct Vcs-Bzr to the right canonical branch (lp:ubuntu/libunity) -- Didier RocheMon, 25 Jun 2012 12:27:30 +0200 ** Changed in: libunity (Ubuntu) Status: Triaged => Fix Released -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
** Branch unlinked: lp:~sil2100/libunity/precise_SRU -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
** Branch linked: lp:~sil2100/libunity/precise_SRU_quilt -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
we have the newer vala in quantal which contains the right fix (but too dangerous for precise) ** Changed in: gobject-introspection (Ubuntu) Status: Confirmed => Fix Released ** Changed in: vala (Ubuntu) Status: Triaged => Fix Released ** Changed in: libunity (Ubuntu) Status: Invalid => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
** No longer affects: unity (Ubuntu) ** Also affects: gobject-introspection (Ubuntu Precise) Importance: Undecided Status: New ** Also affects: libunity (Ubuntu Precise) Importance: Undecided Status: New ** Changed in: gobject-introspection (Ubuntu Precise) Status: New => Invalid ** No longer affects: gobject-introspection (Ubuntu Precise) ** Changed in: unity Status: Incomplete => Fix Released ** Changed in: libunity (Ubuntu) Status: Fix Committed => Invalid ** Changed in: libunity (Ubuntu Precise) Status: New => Triaged ** Also affects: vala (Ubuntu) Importance: Undecided Status: New ** No longer affects: vala (Ubuntu Precise) ** Changed in: vala (Ubuntu) Status: New => Triaged -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
** Description changed: - SRU test case: + [Test Case] 1) Run `python -c "from gi.repository import Unity; print Unity.ActivationResponse.new(Unity.HandledType.SHOW_DASH, '')"` 2) The command shouldn't cause a segmentation fault + + [Regression Potential] + Besides gir not working, nothing else comes to mind. Original Report 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: TypeError: can't convert return value to desired type ../pathtolens/lens.py:100: Warning: g_object_get_qdata: assertion G_IS_OBJECT (object)' failed GObject.MainLoop().run() ../pathtolens/lens.py:100: Warning: g_object_set_qdata_full: assertionG_IS_OBJECT (object)' failed GObject.MainLoop().run() ../pathtolens/lens.py:100: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed GObject.MainLoop().run() 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 ** Changed in: libunity (Ubuntu) Status: New => Fix Committed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
** Changed in: libunity Status: Confirmed => Fix Committed ** Also affects: libunity (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
** Branch linked: lp:~sil2100/libunity/precise_SRU -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
The attachment "libunity-5-12-gir.patch" of this bug report has been identified as being a patch. The ubuntu-reviewers team has been subscribed to the bug report so that they can review the patch. In the event that this is in fact not a patch you can resolve this situation by removing the tag 'patch' from the bug report and editing the attachment so that it is not flagged as a patch. Additionally, if you are member of the ubuntu-reviewers team please also unsubscribe the team from this bug report. [This is an automated message performed by a Launchpad user owned by Brian Murray. Please contact him regarding any issues with the action taken in this bug report.] ** Tags added: patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
A proper fix was applied to Vala in commit http://git.gnome.org/browse/vala/commit/?id=d44ecb80a702aad220f1091751ca19eadb21bc77 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
Attaching a patch which if applied to libunity generated Unity-5.0.gir file will produce a correct typelib and fix the crash. ** Description changed: + SRU test case: + + 1) Run `python -c "from gi.repository import Unity; print Unity.ActivationResponse.new(Unity.HandledType.SHOW_DASH, '')"` + 2) The command shouldn't cause a segmentation fault + + Original Report + 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: TypeError: can't convert return value to desired type - ../pathtolens/lens.py:100: Warning: g_object_get_qdata: assertion G_IS_OBJECT (object)' failed GObject.MainLoop().run() - ../pathtolens/lens.py:100: Warning: g_object_set_qdata_full: assertionG_IS_OBJECT (object)' failed GObject.MainLoop().run() - ../pathtolens/lens.py:100: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed GObject.MainLoop().run() + ../pathtolens/lens.py:100: Warning: g_object_get_qdata: assertion G_IS_OBJECT (object)' failed GObject.MainLoop().run() + ../pathtolens/lens.py:100: Warning: g_object_set_qdata_full: assertionG_IS_OBJECT (object)' failed GObject.MainLoop().run() + ../pathtolens/lens.py:100: Warning: g_object_unref: assertion `G_IS_OBJECT (object)' failed GObject.MainLoop().run() 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 ** Patch added: "libunity-5-12-gir.patch" https://bugs.launchpad.net/libunity/+bug/893688/+attachment/3186356/+files/libunity-5-12-gir.patch -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
The attachement is a replacement for /usr/share/pyshared/gi/overrides/Unity.py that fixes this and in addition lets you use the more Pythonic "ret = Unity.ActivationResponse(Unity.HandledType.HIDE_DASH, uri)" (without named args) The 'uri' args is optional in both versions and defaults to '' ** Attachment added: "replacement for /usr/share/pyshared/gi/overrides/Unity.py" https://bugs.launchpad.net/libunity/+bug/893688/+attachment/3183433/+files/Unity.py -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
As the askubuntu question suggests: "ret = Unity.ActivationResponse(handled=Unity.HandledType.HIDE_DASH,goto_uri='')" works as a workaround. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
** Also affects: libunity Importance: Undecided Status: New ** Changed in: libunity Status: New => Confirmed ** Changed in: libunity Importance: Undecided => Medium ** Changed in: libunity Importance: Medium => Low -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/libunity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: gobject-introspection (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/unity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 893688] Re: Unity.ActivationResponse does not work properly for python scopes
Looks like a proper and confirmed bug, but is GObject Introspection to blame for this one? ** Also affects: gobject-introspection (Ubuntu) Importance: Undecided Status: New ** Changed in: unity Status: New => Incomplete ** Also affects: unity (Ubuntu) Importance: Undecided Status: New ** Changed in: unity (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/893688 Title: Unity.ActivationResponse does not work properly for python scopes To manage notifications about this bug go to: https://bugs.launchpad.net/unity/+bug/893688/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs