What I did is just a workaround, here is what I can suggest instead of destroying the widget (I didn't test any of these so I'm not sure it will work):
- insert menu to proxy only on "good" sessions, like that: if (proxy != NULL && (desktop_session == NULL || g_str_has_prefix(desktop_session, "ubuntu")) { ubuntu_menu_proxy_insert(proxy, GTK_WIDGET(window), NAUTILUS_WINDOW(window)->details->menubar, 0); } - set $UBUNTU_MENUPROXY only on "good" sessions, so that it won't be set in Gnome Shell/Fallback - find out why appmenu(-gtk) draws that menu (probably it can't find a dbus listener so falls back to just drawing it) and make it looking at whether the original menubar before drawing it Also, we can use the method described at https://wiki.ubuntu.com/MenuBar#Advertising_the_presence_of_the_menu_bar instead of checking $DESKTOP_SESSION, but this will work only if Unity/Appmenu starts before Nautilus. You can disable the old fix while I'll be looking at this. -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to nautilus in Ubuntu. https://bugs.launchpad.net/bugs/826771 Title: indicator-appmenu leads to have a nautilus menubar displayed on top of the screen Status in Unity Foundations: Fix Released Status in “gtk+3.0” package in Ubuntu: Invalid Status in “nautilus” package in Ubuntu: Triaged Status in “gtk+3.0” source package in Oneiric: Invalid Status in “nautilus” source package in Oneiric: Fix Released Bug description: If a transparently panel is used in gnome shell theme, nautilus menu bar is visible under the gnome shell panel. [How To Reproduce] 1. Install gnome-shell and gnome-themes-standard 2. login gnome session 3. Apply gnome shell theme of using transparently panel. (ex. Delta-shell: http://gnome-look.org/content/show.php/Delta+shell?content=143257 ) ProblemType: Bug DistroRelease: Ubuntu 11.10 Package: nautilus 1:3.1.4-0ubuntu3 ProcVersionSignature: Ubuntu 3.0.0-8.11-generic 3.0.1 Uname: Linux 3.0.0-8-generic i686 Architecture: i386 Date: Mon Aug 15 22:10:54 2011 ExecutablePath: /usr/bin/nautilus InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Alpha i386 (20110531.1) ProcEnviron: PATH=(custom, user) LANG=ja_JP.UTF-8 SHELL=/bin/bash SourcePackage: nautilus UpgradeStatus: Upgraded to oneiric on 2011-08-13 (2 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/unity-foundations/+bug/826771/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : desktop-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp