Comment 0 for bug 955147

Revision history for this message
Bilal Akhtar (bilalakhtar) wrote : [FFe, UIFe] Add Software Center Integration to the Unity launcher

As decided at UDS-P, Software Center should be integrated deeper with the Unity launcher. The spec for how it should happen, is here:

https://wiki.ubuntu.com/SoftwareCenter#Learning_how_to_launch_an_application

Here's a YouTube video demonstrating this in action (It's my video running Unity from my branch, see the attached branch for it):
http://www.youtube.com/watch?v=6peOjOrcURA

Now for the implementation details. I broke down implementation into two phases. First phase involved these features:
1) An app being installed is shown in the launcher with a tooltip "Waiting to install"
2) A progress bar on the launcher item displays the download/install progress.
3) When the app gets installed, the launcher items becomes usable, and the tooltip gets changed to the app name.

First phase (bug #761851) was implemented as part of this merge request here: https://code.launchpad.net/~bilalakhtar/unity/software-center-integration-for-o/+merge/71905 . Note that this was pre-feature freeze and pre-UIF. That branch added one string, "Waiting to install", which got in before the freezes.

It shipped as part of Unity 5.2. But due to the code getting refactored, the implementation broke right afterwards, as one line got missed out; see bug #932280 and the attached branch. I didn't realize this until the freezes had passed, and I wrote a one-line change to fix it, which remains unmerged until now: https://code.launchpad.net/~bilalakhtar/unity/fix-sc-launcher-integration/+merge/93908 . The reason why it wasn't merged, was because it lacked tests. By the time it was reviewed, I completed phase 2 too, which contained these features:

1) Animate the movement of the icon from the USC window to the Unity launcher.
2) Make the launcher icon wiggle when installation is complete.
3) Ensure the launcher icon doesn't start blinking when clicked in the "Waiting to install" phase.

Phase 2 fixes the regression as well as adds the above features. So, it introduces these changes, from Unity 5.2 (since in 5.2, phase 1 was working well, phase1 broke AFTER 5.2), that need FFe and UIFe:
1) The behavior changes (flying icon) rather than just a usual icon add.
2) Launcher icon wiggles when installation finishes, unlike 5.2, where it just became usable, with no extra effect.

Phase 2 is contained in this merge request (branch is also linked to this bug): https://code.launchpad.net/~bilalakhtar/unity/sc-integration-phase2/+merge/95795

The YouTube video which I linked at the top of this description, is actually the above branch in action.

Please review this FFe and UIFe request. I'm now going to write to the ubuntu-doc and translators teams. Will update description shortly with links to the postings.