Merge lp://staging/~gary-lasker/software-center/unity-launcher-integration-fixes into lp://staging/software-center/5.2
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Michael Vogt (community) | Needs Fixing | ||
Matthew Paul Thomas | Needs Fixing | ||
Review via email: mp+109976@code.staging.launchpad.net |
Commit message
* lp:~gary-lasker/software-center/unity-launcher-integration-fixes:
- fix bug where for-purchase items are not being added to the Unity
launcher (LP: #925014)
- fix bug where the Unity launcher item for an application incorrectly
points to its app-install-data desktop file rather than its installed
desktop file (LP: #999427)
- fix bug where an application's icon remains in the Unity launcher after
the corresponding application has been uninstalled (LP: #981488)
- fix bug where the Unity launcher fails to auto-hide after installation
of a for-purchase item (LP: #1002440)
- fix bug where items in the "Independent" section are not being added
to the Unity launcher (LP: #1012877)
Description of the change
This branch delays the firing of the add-to-
This branch fixes five important bugs and obviates the need for immediate corresponding fixes on the Unity side.
The bugs are:
Bug 925014 - Purchased items are not being added to the Unity launcher
Bug 999427 - Launcher items added via Ubuntu Software Center incorrectly point to the app-install desktop files rather than the actual installed desktop files
Bug 981488 - Program's icon stays in Launcher after removing the program
Bug 1002440 - Unity Launcher Fails To Auto-Hide When Enabled & Installing Commercial Software
Bug 1012877 - Applications in the "Independent" section are not being added to the Unity launcher
Please see comment #11 of bug 925014 for discussion of this fix with Bilal on the Unity side.
The downside to this fix is that the icon is added at the end of the install now (upon receipt of the "transaction-
In addition, this will buy us any time that we may need to fix these bugs on the Unity side, and once this is done we will have the freedom to revert this change and return to the current behavior.
Note that with current Unity version, the newly-added icon will have the tooltip "Waiting to Install". Bilal has a fix for this, please see bug 925014 for his branch and its status.
Thanks for your work on this branch.
The code looks good, I like the fact that we have a fake PURCHASE_ TRANSACTION_ ID now
in enums for example.
One minor nitpick would be that I liked that we had a seperate function in 5.0 _register_ unity_launcher_ transaction_ started( ) for on_transaction_ started( ). But
given how small it is now its probably not needed.
During manual testing I noticed a delay for up to 20s between the finish of the install and the fly-in animation. This needs to be investigated before this can be merged.
I reproduced this delay on both my quantal box and on precise (to ensure that its not a quantal artifact).