Blacklist an application in the AppMenu?

Asked by d-snake on 2011-05-03

Hi Devs,

after searching around the web, I've found no way to exclude an application for showing his main menu in the global app menu. I've searched also in the source for such a feature but I've found nothing. I have the problem with Gimp. Every time when you select the layer window, the main menu is empty. That means you have to select the main window of Gimp and then the main menu. That sucks ;-)

Is it possible to implement something? Something like this:

Instead an hard coded array of blacklisted array:
Source of indicator-appmenu/natty/src/indicator-appmenu.c:
....
Line 849
/* List of desktop files that shouldn't have menu stubs. */
const static gchar * stubs_blacklist[] = {
 /* Firefox */
 "/usr/share/applications/firefox.desktop",
 /* Thunderbird */
 "/usr/share/applications/thunderbird.desktop",
 /* Open Office */
 "/usr/share/applications/openoffice.org-base.desktop",
 "/usr/share/applications/openoffice.org-impress.desktop",
 "/usr/share/applications/openoffice.org-calc.desktop",
 "/usr/share/applications/openoffice.org-math.desktop",
 "/usr/share/applications/openoffice.org-draw.desktop",
 "/usr/share/applications/openoffice.org-writer.desktop",
 /* Blender */
 "/usr/share/applications/blender-fullscreen.desktop",
 "/usr/share/applications/blender-windowed.desktop",
 /* Eclipse */
 "/usr/share/applications/eclipse.desktop",

 NULL
};

You can search for the blacklisted *.dektop files in the folder "/usr/share/indicator-appmenu/blacklist" and one in the HOME path like "~/.local/share/indicator-appmenu/blacklist". In this folders are just softlinks from "/usr/share/applications/*".

What do you think of it? Thanks for response ;-)

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu indicator-appmenu Edit question
Assignee:
No assignee Edit question
Last query:
2011-05-03
Last reply:
2011-05-08

Can you help with this problem?

Provide an answer of your own, or ask d-snake for more information if necessary.

To post a message you must log in.