mardi 27 novembre 2012

Appmenu support in KDE 4.10

Appmenu support for KDE is now available in master for testing.

This is mostly a Kded module able to:
- Display a top screen menubar

- Display a menu at wanted position

When a user click on kwin application menu button, it just tell to kded-appmenu to show menu for window at position.

At this time, only oxygen support the button but we hope support in Aurorae for KDE > 4.10

To test this, you have to:
- Install appmenu-qt (available in openSUSE, ArchLinux and Kubuntu)
- Setup your menu behaviour in kcm style

After fixing plasma-widget-menubar for using kded-appmenu, next step will be to look at GMenuModel from Canonical and move to this API if possible (already used in Gnome-shell).

Thanks to Lionel Chauvin for first patch version!

Thanks to Thomas Lübking, Martin Gräßlin and Hugo Pereira Da Costa for help!

19 commentaires:

  1. The top screen menubar is absolutely brilliant. It would also be nice to have menubar plasmoid as part of KDE SC in the future. Thanks.

    RépondreSupprimer
  2. Ah, excellent! Is there any plan to bring back the "oxygen-appmenu" look with application and icon name instead of the menu button? I seem to recall it was considered an ugly hack by then, but now with qml decorations, I hope there's a cleaner way to implement it?

    RépondreSupprimer
    Réponses
    1. Just wait for Aurorae support...

      Hugo may change button look for KDE 4.11 ;)

      Supprimer
  3. Réponses
    1. No packages available for now... Just search for a ppa ;)

      Supprimer
    2. I installed KDE 4.10 in openSUSE 12.2 and then installed appmenu-qt. Can't see any menu at all -- all buttons are also hidden in maxinize mode.

      Supprimer
  4. Thank you !!

    It was a pleasure to work with you.

    Lionel.

    RépondreSupprimer
  5. I have installed it on openSUSE 12.2 KDE 4.9.3, but can't find any configuration under KCM style. Is something wrong?

    RépondreSupprimer
    Réponses
    1. It's for KDE 4.10... You need to patch kde-workspace with kde-apps patch.

      Supprimer
  6. This looks awesome!

    Just to be clear: Do you need run kwin to have this? Or a full kde session? I currently use lightdm+xfce+kde apps+compiz.

    Also, is it possible to have the window decorator be e.g:
    | Dolphin | _File | _Edit | _View | _Go | _Tools | _Settings | _Help | <---space---> | _ | X |
    Or does the menu have to live under its own button?

    Thanks, and great work!

    RépondreSupprimer
  7. I totally agree with @solenskiner!
    It should be something like this: http://en.wikipedia.org/wiki/File:Nokia_Suite_screenshot.png
    Much better than the current implementations.

    RépondreSupprimer
    Réponses
    1. And I have always found all Nokia suites user experience terrible and one reason is because drop-down menu being in window decoration.

      Supprimer
  8. Hi

    I have been trying to enable this in gentoo using the beta version provided in the kde-overlay but I cannot find in system settings how to enable it :S Can anyone point me to the correct option?

    Very thanks in advance!!!

    RépondreSupprimer
  9. I've built KDE trunk, and enabled the kded module. When I change in the Styles menu to use either menu bar or top-screen bar, the menu bars disappear in the application but there is not a button in Oxygen nor is there a topbar. Running things from Konsole gives me:

    bool DBusMenuExporterDBus::AboutToShow(int): Condition failed: menu
    bool DBusMenuExporterDBus::AboutToShow(int): Condition failed: menu
    bool DBusMenuExporterDBus::AboutToShow(int): Condition failed: menu
    bool DBusMenuExporterDBus::AboutToShow(int): Condition failed: menu
    bool DBusMenuExporterDBus::AboutToShow(int): Condition failed: menu
    bool DBusMenuExporterDBus::AboutToShow(int): Condition failed: menu
    bool DBusMenuExporterDBus::AboutToShow(int): Condition failed: menu
    bool DBusMenuExporterDBus::AboutToShow(int): Condition failed: menu
    bool DBusMenuExporterDBus::AboutToShow(int): Condition failed: menu

    Any idea what causes this? Also the appmenu krunner plugin causes kded to crash, though the backtrace is pretty useless.

    RépondreSupprimer
  10. Just to be clear (because, BTW, it is NOT easy AT ALL to understand!!), this is how to enable the feature:

    System Settings -> Appearance -> Style -> Fine Tuning (tab) -> there should be a "Menubar" section where you can choose the style among the ones of the post

    Hope some ease of configuration will come sometimes soon

    Greetings
    Michele

    RépondreSupprimer
  11. Thanks poomerang!
    I couldn't figure out how to get the menubar to work. I am good now.
    Note that I had to log out and log back in for it to be effective.

    RépondreSupprimer
  12. I’ve been using a global menubar with Plasma since quite a while. Using appmenu-qt and http://launchpad.net/plasma-widget-menubar

    RépondreSupprimer
  13. What about software that already supports this functionality (presumably with a bunch of hacks!), such as Dolphin and the 'Control' button you can make show up instead of the menubar?

    RépondreSupprimer