From bde558f6550dac23ee28b6e14690af28164fb199 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Fri, 14 Oct 2011 21:17:41 +0100 Subject: [PATCH] Force the menubar to be shown in the Clementine window instead of in Unity's global menubar thing. --- src/main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index b9d12d9d8..a59977e22 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -316,6 +316,13 @@ int main(int argc, char *argv[]) { } #endif +#ifdef Q_OS_LINUX + // Force Clementine's menu to be shown in the Clementine window and not in + // the Unity global menubar thing. See: + // https://bugs.launchpad.net/ubuntu/+source/appmenu-gtk/+bug/674047 + setenv("QT_X11_NO_NATIVE_MENUBAR", "1", true); +#endif + // Initialise logging logging::Init(); logging::SetLevels(options.log_levels());