Ubuntu 17.10 windows' menu in panel

16,918

Solution 1

You may try a GNOME shell extension called "Gnome Global Application Menu(HUD for Gnome)". It provides a global application menu (i.e. menu bar of an application window in the top bar) à la Unity's global menu.

enter image description here
(screenshot source: extension's homepage at extensions.gnome.org)

For detailed info you may visit the extension's GitHub page.

Warning: Performance may not be as smooth as Unity's global menu. See this if you want to deactivate/uninstall the extension correctly.


Current status and future of the extension

It will work for the next 6 month at less, as i'm waiting for the release of ubuntu 18.04 to take a desition of what i will do. If the default session of ubuntu 18.04 will be xorg i will continue with the extension for 6 month more. Also, if ubuntu or gnome developers fix or help to fix unity-gtk-module in wayland i will continue the extension. What i will not do is continues making improvements, because this have not sense if will not work on Wayland. Also if the ubuntu developers want to implemented it i will donate the extension to hims and i will help in what is needed. - the developer, 27 Oct 2017

Update: The extension has been discontinued by its original developer. Please consider not using this extension.

Solution 2

Ubuntu is now using GNOME as a primary desktop and they are following the GNOME Human Interface Guidelines (HIG). In GNOME they now consider the menubar an inferior solution:

Menu bars increase the vertical footprint of an application’s user interface, introduce a large number of disclosure points, and function as a fixed set of inflexible options. For these reasons, header bars and header bar menus are generally recommended over menu bars, along with other design patterns for exposing controls on demand, such as selection mode, action bars, and popovers.

A global menu is a menubar exported in a service (a DBUS service). So, to have a global menu, as you are wishing, you need to have a menubar or an internal representation of it at least. But most of the GNOME core applications don't have a menubar right now. The Ubuntu developers were working on including a menubar into the GNOME core applications some years ago, but they abandoned that project at the same time they abandoned Unity:

I'm closing the remaining tasks here. The decision was made for Ubuntu 18.04 LTS that we're not going to use distro patches to add these menus back.

While this Ubuntu project existed, a GNOME shell extension called "Gnome Global Application Menu(HUD for Gnome)" was created. But when the Ubuntu developers decided to not support the project, the extension stopped making sense.

So, it is not possible to have a global menu in Ubuntu with GNOME anymore, unless the project of the Ubuntu developers comes to life again, or we find a way to hack the GNOME core applications, or the GNOME designers and developers change their mind about this feature in the future.

Of course we can select an alternative desktop environment in Ubuntu where the core applications have a menubar and then the desktop can implement a global menu for it. This can be for example KDE, Mate and others, but currently not GNOME.

Not having a menubar is a human decision, not an impossibility of the GNOME desktop or the GNOME applications. But the end result is that you cannot have a global menu in a consistent way in GNOME.

Share:
16,918

Related videos on Youtube

ky213
Author by

ky213

Updated on September 18, 2022

Comments

  • ky213
    ky213 over 1 year

    I installed the latest version of Ubuntu (17.10) , but the problem is, I can't find the menu bars of applications in the GNOME panel. For instance, the Chrome menu bar doesn't appear on the panel like in Ubuntu 17.04 and earlier versions.

  • vishvAs vAsuki
    vishvAs vAsuki over 6 years
  • pomsky
    pomsky over 6 years
    Still works for now, at least in an Xorg session.
  • lestcape
    lestcape over 6 years
    It will work for the next 6 month at less, as i'm waiting for the release of ubuntu 18.04 to take a desition of what i will do. If the default session of ubuntu 18.04 will be xorg i will continue with the extension for 6 month more. Also, if ubuntu or gnome developers fix or help to fix unity-gtk-module in wayland i will continue the extension. What i will not do is continues making improvements, because this have not sense if will not work on Wayland. Also if the ubuntu developers want to implemented it i will donate the extension to hims and i will help in what is needed.
  • pomsky
    pomsky over 6 years
    @lestcape Thanks for your detailed and helpful comment. I have appended that to my answer for future reference. One small suggestion, I think it's better to add the commands to reset gsettings values after disabling the extension to the extension-homepage at extensions.gnome.org. It's somewhat scary when the menu bar vanishes completely after disabling the extension! :D
  • lestcape
    lestcape over 6 years
    @pomsky yes, I need to redefine all about it, as this cause problems with gdm also.
  • lestcape
    lestcape over 6 years
    @pomsky and well, the extension never was ready to be launched to extensions.gnome.org. I warned about incompatibilities and I did not release it, another user did. I do not have the control over the extension at extensions.gnome.org, so i can not fix anything there, just only in github.
  • lestcape
    lestcape over 6 years
  • Josh
    Josh over 4 years
    Is there a suitable replacement for this extension? @lestcape
  • lestcape
    lestcape over 4 years
    @Jersh there are not any replace yet, but probably it will never appeared.