diff --git a/utils/aa-sandbox.pod b/utils/aa-sandbox.pod index a8927ade4..d82d590c1 100644 --- a/utils/aa-sandbox.pod +++ b/utils/aa-sandbox.pod @@ -192,6 +192,10 @@ Using a nested X server for each application is expensive. Only the old X cursor is available with B and B. +The Ubuntu global menu is not currently supported. Gtk and Qt applications +should display the non-global menu by default, but applications like Firefox +and Thunderbird should be adjusted to disable the global menu. + =back =head1 BUGS diff --git a/utils/apparmor/sandbox.py b/utils/apparmor/sandbox.py index 8b65d9667..b973b0169 100644 --- a/utils/apparmor/sandbox.py +++ b/utils/apparmor/sandbox.py @@ -187,6 +187,7 @@ class SandboxXserver(): self.old_environ['DISPLAY'] = os.environ['DISPLAY'] self.old_environ['XAUTHORITY'] = os.environ['XAUTHORITY'] self.old_environ['UBUNTU_MENUPROXY'] = os.environ['UBUNTU_MENUPROXY'] + self.old_environ['QT_X11_NO_NATIVE_MENUBAR'] = os.environ['QT_X11_NO_NATIVE_MENUBAR'] # prepare the new environment self.display, self.xauth = self.find_free_x_display() @@ -200,6 +201,7 @@ class SandboxXserver(): self.new_environ['XAUTHORITY'] = self.xauth # Disable the global menu for now self.new_environ["UBUNTU_MENUPROXY"] = "" + self.new_environ["QT_X11_NO_NATIVE_MENUBAR"] = "1" def cleanup(self): '''Cleanup our forked pids, reset the environment, etc'''