← Back to team overview

dx-packages team mailing list archive

[Bug 1307619] Re: All Qt5 applications' menu bar is missing at non-Unity DEs after appmenu-qt5 installed

 

It seems there is actually a simple fix for most of these problems.
As far as I can tell the root cause of the problem is as follows:

The appmenu-qt5 package somehow grabs all the menus from all
applications and sends them via D-Bus to the window manager. Of course
this will only work if the window manager is actually listening for
these kind of messages on D-Bus.

The appmenu-qt5 plugin will only do this, if according to the
documentation the environment variable QT_QPA_PLATFORMTHEME is set to
appmenu-qt5.

Now installing the appmenu-qt5 package will put a script under "/etc/profile.d/appmenu-qt5.sh" and this script is a single liner:
  export QT_QPA_PLATFORMTHEME=appmenu-qt5

So the environment variable is UNCONDITIONALLY set. I think this is just plain wrong, since the assumption that ALL window managers will support this undocumented D-Bus menu forwarding mechanism is rather weird. 
I think the script "/etc/profile.d/appmenu-qt5.sh" should check if Unity is running and ONLY THEN set the environment variable.
For example something like this:

  if [ "$DESKTOP_SESSION" = "ubuntu" ]; then
    export QT_QPA_PLATFORMTHEME=appmenu-qt5
  fi

Note: I am not an Ubuntu wizard, so I am not sure what the best way is
how to check for Unity in a bash script. I at least think the above
would work...

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to appmenu-qt5 in Ubuntu.
https://bugs.launchpad.net/bugs/1307619

Title:
  All Qt5 applications' menu bar is missing at non-Unity DEs after
  appmenu-qt5 installed

Status in LyX:
  New
Status in appmenu-qt5 package in Ubuntu:
  Confirmed

Bug description:
  1. Open "Qt Creator" Version 3.0.1 at the Gnome3 Desktop
  2. Menu bar is missing.

  ------------ workaround ----------------------------------
  After Deinstall appmenu-qt5 is the Menu bar working again.
  Open Terminal:
  sudo apt-get remove appmenu-qt5

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: appmenu-qt5 0.3.0+14.04.20140314-0ubuntu1
  ProcVersionSignature: Ubuntu 3.13.0-8.28-generic 3.13.2
  Uname: Linux 3.13.0-8-generic i686
  ApportVersion: 2.14.1-0ubuntu2
  Architecture: i386
  CurrentDesktop: GNOME
  Date: Mon Apr 14 18:52:18 2014
  InstallationDate: Installed on 2014-02-14 (58 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Alpha i386 (20140214)
  SourcePackage: appmenu-qt5
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/lyx/+bug/1307619/+subscriptions


References