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.

We want our app Nitro to be more native on Ubuntu. We're going to do this by adding Unity quicklist support & appmenu support.

Is it possible for the app to only utilize the app menu? If the user is not using Unity they won't get any menu bar. The only reason why we want the menu to be in the Ubuntu version is for the sake of desktop integration.

share|improve this question
    
Normally ,If you included a normal menu in the app ,unity will converted it into appmenu and other de will place the menu in the app itself , –  Tachyons Apr 17 '12 at 9:46
    
Yes, but we don't want the menu in the app itself. Only under unity. –  consindo Apr 17 '12 at 9:48
    
You mean it wont support other DE LIKE GNOME SHELL and xfce? –  Tachyons Apr 17 '12 at 9:51
    
In Gnome Shell it will use the Gnome Shell App Menu. The app doesn't need menus - it's fine how it is. We just want them for the sake of integration. –  consindo Apr 17 '12 at 9:54
add comment

1 Answer 1

up vote 6 down vote accepted

Yes, certainly that's not a normal use case :-) So there are a couple of ways to do things. What the Chrome developers have done is create the menu bar but leave it hidden, it gets picked up by appmenu-gtk but isn't shown.

Another option is to just look for the UBUNTU_MENUPROXY environment variable. If it is set, then you can build the menu bar, if not, don't build it.

Hope that helps,

share|improve this answer
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.