GNOME Bugzilla – Bug 695675
Cannot access the application menu of graphical programs ran as sudo or beesu if access requires user to click on the program name in gnome shell
Last modified: 2021-07-05 14:43:30 UTC
Description of Problem: Some programs, such as Nautilus do not have a menu bar but instead have their application menu accessible by either clicking or right clicking on it in the gnome shell bar (for lack of better words) however if the application is ran via sudo or beesu / gksu, then the menu becomes inaccessible (my theory is it's permissions related as a regular user doesn't have the privileges to access / modify an application ran by another user or what it thinks is another user) making it impossible to access Preferences or other important functions. Package Versions: gnome-shell 3.6.3.1-1.fc18 x86_64 nautilus 3.6.3-4.fc18 x86_64 Actual Result: A program launched via sudo, beesu / gksu under Gnome 3 cannot access its menu if menu access requires clicking on the program's name in the gnome shell / task bar at the top of the screen. Expected Result: User should be able to access the respective menus as the correct user (root) normally like with applications they launched under their own credentials.
I confirm that this bug remains for Gnome Shell 3.10 and it affects all core GTK applications (Gedit, Gnome Terminal, Nautilus etc). The application menu is not available when core GTK applications are executed with elevated permissions. I have observed this behavior on my system running both Fedora 20 and Arch Linux using the Gnome Shell environment, using either the nouveau graphics driver (Fedora) or the Nvidia proprietary driver (Arch Linux). Both systems are fully updated as of today (Feb 8 2014).
*** Bug 729990 has been marked as a duplicate of this bug. ***
I guess that's related to D-Bus, similar to bug 700384.
*** Bug 737713 has been marked as a duplicate of this bug. ***
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org. As part of that, we are mass-closing older open tickets in bugzilla.gnome.org which have not seen updates for a longer time (resources are unfortunately quite limited so not every ticket can get handled). If you can still reproduce the situation described in this ticket in a recent and supported software version, then please follow https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines and create a new ticket at https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/ Thank you for your understanding and your help.