KubuntuLaunchpadIntegration

Differences between revisions 7 and 8
Revision 7 as of 2006-06-19 17:15:54
Size: 2399
Editor: ALagny-109-1-2-23
Comment:
Revision 8 as of 2006-06-19 17:17:30
Size: 2372
Editor: ALagny-109-1-2-23
Comment:
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
The Gnome spec is at https://wiki.kubuntu.org/UbuntuDownUnder/BOFs/LaunchpadIntegration
Line 15: Line 17:

The Gnome spec is at https://wiki.kubuntu.org/UbuntuDownUnder/BOFs/LaunchpadIntegration
Line 48: Line 48:
Qt apps will need to be patched individually, similar to how Gnome does it. Qt only apps will need to be patched individually.  Qt apps to patch:
Line 50: Line 50:
Qt apps to patch:

Summary

Include Launchpad Integration in Kubuntu programs.

The Gnome spec is at https://wiki.kubuntu.org/UbuntuDownUnder/BOFs/LaunchpadIntegration

Rationale

Ubuntu has Launchpad integration in most of its Gnome programmes. This adds menu items "Get Help Online" and "Translate this Application" which takes the user to a Launchpad page with links to support and help. We should include this in Kubuntu's KDE programmes.

Use cases

Maisie wants to know where to get support for Kontact, a Help menu item would show her where to find it.

Daniel is browing around the Kubuntu applications and notices a menu item "Translate this application", this takes him to a Launchpad page for translating the application in Rosetta and becomes a keen translator.

Scope

Add "Get Help Online" and "Translate this Application" to any application that uses kdelibs and all other Qt applications in main.

Design

KDE includes a standard Help menu in every application provided by the kdeui library, this means we only have to patch one place and can avoid having to patch every application.

The patch will add a menu item "Get Help Online" that goes to

https://launchpad.net/distros/ubuntu/dapper/+sources/<package>/+gethelp

and "Translate this Application" which goes to

https://launchpad.net/distros/ubuntu/dapper/+sources/<package>/+translate

Implementation

The python script launchpad-integration is used to find the binary package for a running application.

KDE programmes are run from kdeinit and launchpad-integration --pid picks up kdeinit so we will use --file and find the full path of the application using KStandardDirs. All KDE applications know their binary name in the KApplication static class.

The change needs to be made to the kdeui library in kdelibs. It needs to use KApplication's invokeBrowser to launch the user's default webbrowser.

Qt only apps will need to be patched individually. Qt apps to patch:

  • scribus
  • speedcrunch
  • qtparted
  • qtdesigner
  • gambas
  • psi

KubuntuLaunchpadIntegration (last edited 2008-08-06 16:39:15 by localhost)