With this command, I'm able to run gedit in sudo and get the menu: sudo -E gedit
The environment variable that matters is DBUS_SESSION_BUS_ADDRESS. So you can also get gedit working like this: pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY GTK_MODULES=$GTK_MODULES DBUS_SESSION_BUS_ADDRESS=$DBUS_SESSION_BUS_ADDRESS gedit That said, dconf still doesn't work. So it's not possible changing the preferences. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1527590 Title: Menu isn't shown in gedit when run with sudo To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gedit/+bug/1527590/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
