Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Background

After eyeing Unity's notification APIs for the past few releases, I've developed an itch to write a feed reader that syndicates new arrivals in the Messaging Menu...

Messaging menu

... and provides search in the dash.

Dash image

It would be nice to open the dash straight from the messaging menu, directly to the feed lens searching a selected term. Look at the pictures above to see what I mean.

Question

Essentially, is there a Unity API to:

  1. Summon the dash?
  2. Set the dash's active lens?
  3. Set the dash's search term?

Thanks.

share|improve this question

2 Answers 2

up vote 8 down vote accepted

You can certainly add search data sources (we call them "scopes") for the Dash, and lenses through which to view them. Scopes can also add results to existing lenses.

I don't know that there is an API today to invoke the dash on a particular lens programatically, but it's a very good idea that such an API exist. I like the example you give of having an indicator which has a menu item that leads to a lens very much.

So, please file a bug, feel free to copy this comment in for support, and patches welcome.


Addendum: bug #896402 has been filed.

share|improve this answer
1  
Here is the bug report. –  Jacob Johan Edwards Nov 25 '11 at 20:29

It should be possible. You can have a look at the 'documentation' here (python) or here. Maybe you should file a bug report that the documentation is less then incomplete.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.