Comment 7 for bug 761851

Revision history for this message
Gary Lasker (gary-lasker) wrote : Re: add to launcher request after started installing

Hi Bilal! Please be sure to use the attached branch lp:~gary-lasker/software-center/launcher-integration-lp761851 when you are developing/finishing your launcher integration code. This branch has the changes that I mentioned in comment #3 as being needed for when the Unity side of the integration is ready to land.

The primary difference between this branch and trunk is that in this branch we fire the dbus call to the Unity launcher service immediately at the start of the application install, whereas in trunk we queue it up because we can't fire it until install is complete so that we can know the correct installed locations for the desktop file and the application icon.

Note that, as you and I have discussed previously, on the Unity side you will need to monitor aptdaemon's events on the dbus in order to display the install progress in the launcher, as well as to detect when a transaction has completed, or if it has failed or been canceled. Once the installation has completed, you can determine the installed locations for the application desktop file and icon (for reference, in the software-center branch you can find the code we used for this in the file softwarecenter/utils.py; refer to the methods get_file_path_from_iconname and convert_desktop_file_to_installed_location()).

As always, thank you for your work on this! And please be sure to ping me if you have any questions or if there's anything at all I can do to help.