3

Gedit usually shows the menu bar when the mouse is hovered over the top of Unity (desktop) no matter where or how gedit is displayed. This is ok.

When started from terminal using

sudo gedit

there is no menu bar anywhere.

dconf reset -f /org/compiz/ crashed the system.

Alt+F does not work.

"To show the menu in the window's title bar go to Settings >> Appearance >> Behavior and click Show Menu In The Window's Title Bar." from linuxandubuntu

This change does work normally but still no menu bar with sudo gedit

I could go on with at least 5 other attempts but figure you get the idea.

Can this be fixed?

1 Answers1

1

This did the trick for me:

pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY GTK_MODULES=$GTK_MODULES DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS gedit