More specific to the Gnome DM (avoids the duplicate menu when run in Unity):
Index: mainwindow.cpp
===================================================================
--- mainwindow.cpp (revision 6858)
+++ mainwindow.cpp (working copy)
@@ -842,6 +842,12 @@
minuteTimer.setSingleShot (true);
minuteTimer.start (ms_to_next_minute ());
+ if (strcmp (qgetenv ( "QT_QPA_PLATFORMTHEME"), "appmenu-qt5") == 0
+ &&
+ strstr (qgetenv ( "DESKTOP_SESSION"), "gnome" )
+ )
+ menuBar()->setNativeMenuBar(false);
+
// this must be the last statement of constructor
if (!m_valid) throw std::runtime_error {"Fatal initialization exception"};
}
--
Andrea Montefusco IW0HDV
------------------------------------------
As my old boss, an Apollo veteran, would often remind us “It’s good to
be smart, but it’s better to be lucky.”
Wayne Hale, Space Shuttle Flight Director
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel