No parameter to pass a search string

Bug #612507 reported by Jan on 2010-08-02
This bug affects 1 person
Affects Status Importance Assigned to Milestone
software-center (Ubuntu)

Bug Description

Binary package hint: software-center

The only command-line parameter one can use is the package name, »software-center gedit« takes you to gedit’s page.

To make the Software Center more open to other applications, what about a parameter that can pass a search string to it, like »software-center "search string"«?

I am asking because of the alternative application menu Cardapio:
It has a Software Center plugin which already uses the »software-center PACKAGENAME« parameter. This additional search string parameter would be of great use:

Kiwinote (kiwinote) wrote :

Hi Jan-Cristoph. I've had a quick look at the description in the blueprint. As far as I can see you don't want to display the search results in s-c, but to display the search results in cardapio and launch the s-c details view on click (correct me if I'm wrong). If this is the case, then you can just query the s-c db and cache without the need for a search query parameter. If this doesn't suffice, would you mind giving a few usecases? Thanks.

(In my deb-files branch I have some nice categorisation code which may be of general interest to the plugin.)

First off, thanks for the two quick actions. :)

Cardapio already displays the first 5 search results and on click they direct correctly to the corresponding page in Software Center.

Additionally, under the search results there is a button »Open Software Center« in case the desired program is not in the top 5, which currently only opens Software Center. Instead, it should open a search in Software Center with the string that is currently in the Cardapio search field, so the user can browse all results there.

I understand that this is a very specific request, but I can certainly imagine it being useful for other programs as well. :)

Kiwinote (kiwinote) on 2010-08-02
Changed in software-center (Ubuntu):
status: New → Confirmed
Kiwinote (kiwinote) wrote :

Hi Jan-Cristoph. This has been fixed in the branch linked. The syntax is "software-center search:search term". If there is anything else s-c related that your app is blocking on for maverick, please let us now asap. Thanks.

(The branch linked also fixes some navigation bar issues that are in the latest release of s-c, when passing arguments to an existing s-c instance.)

Changed in software-center (Ubuntu):
status: Confirmed → Fix Committed
assignee: nobody → Kiwinote (kiwinote)
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package software-center - 2.1.10

software-center (2.1.10) maverick; urgency=low

  [ Kiwinote ]
  * data/
    - fix typos to make a few more featured apps appear in the list
  * po/
    - mark softwarecenter/db/ for translation
  * softwarecenter/
    - switch to available view when we are in the installed view and we get a
      request for a pkg in the available view
    - allow s-c to be passed a search term (LP: #612507)
      The syntax is "software-center search:search term"
    - make catalog rebuilding window accessible (LP: #538373)
  * softwarecenter/db/
    - fix typo (LP: #616183)
  * softwarecenter/view/
    - use the same gwibber text in both appdetails views (LP: #614220)
    - make application name and summary accessible and grab focus (LP: #608140)
    - make description accessible (LP: #608140)
    - make info table accessible (LP: #608141)
    - reset pane to top left on show_app()
  * softwarecenter/view/
    - use the same gwibber text in both appdetails views (LP: #614220)
  * softwarecenter/view/
    - refresh navigation bar correctly when we get a request to display a pkg
  * softwarecenter/view/
    - make poster and paging dot accessible (LP: #600306, #608152, #609411)
  * softwarecenter/view/
    - refresh navigation bar correctly when we get a request to display a pkg
  * softwarecenter/view/
    - display the name of the application holding the lock, when waiting for
      a package manager to quit (LP: #440058, #511213)

  [ Michael Vogt ]
  * softwarecenter/view/
    - fix crash when icon can not be loaded
    - fix crash when description is None
  * debian/software-center.postinst:
    - run update-apt-xapian-index -u to ensure the xapian index
      is there (LP: #617397)
  * data/software-center.js:
    - add missing (thanks to Chris Coulson)
 -- Michael Vogt <email address hidden> Fri, 13 Aug 2010 16:46:13 +0200

Changed in software-center (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers