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.

I would like to have an application appear in the messaging menu that is not installed there by default, is there a way to do that on a per-user basis?

share|improve this question
add comment

2 Answers

Documentation and example code for doing this can be found on the Developer Portal

share|improve this answer
add comment
up vote 15 down vote accepted

Applications that are in the messaging menu each have a file in the system directory of:

  /usr/share/indicators/messages/applications/

That directory contains files that have the paths to the desktop files for those applications. You can also have one of these in your home directory with this path:

  ~/.config/indicators/messages/applications/

So let's say that I want to add Thunderbird to my messaging menu. I'd do something like this:

  $ mkdir -p ~/.config/indicators/messages/applications/
  $ echo /usr/share/applications/thunderbird.desktop > ~/.config/indicators/messages/applications/thunderbird

You'll need to restart your session (log out and back in) the first time you create the applications directory.

Here's an example of usage from a python application.

share|improve this answer
3  
Simply restarting the panel killall gnome-panel will work, you don't need to log out. –  Alvin Row Dec 1 '10 at 2:43
    
Are there any python examples to add functionality to any application added to the Messaging Menu? –  Andres Rodriguez Feb 8 '11 at 19:40
    
Yes, there are. Here's a link to them in the libindicate source tree. You can download it with "bzr branch lp:libindicate" or browse it here: bazaar.launchpad.net/~indicator-applet-developers/libindicate/… –  Ted Gould Feb 9 '11 at 2:48
add comment

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.