Local Menus and app-indicator don't work when running as root or invoking as root with "gksu" [video demo]

Bug #1289204 reported by Michael Tunnell
32
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Unity
Confirmed
Undecided
Unassigned
unity (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Video Demo: http://youtu.be/jFrSjHgpMEI

This is a small usability bug for the Local Menus in Ubuntu 14.04. This will probably not be experienced by most people and I pretty much just stumbled across this bug myself so it probably wouldn't be a high priority but I wanted to submit it anyway.

The bug occurs when running as root or invoking root with gksu. Another bug is found when invoking with gksu using the "-k" option to stay in the user environment.

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity (Ubuntu):
status: New → Confirmed
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :
Revision history for this message
George Karavasilev (kokoto-java) wrote :

This also happen with the global menu and it's been like that since they were introduced. If that comment is of any assistance.

Revision history for this message
Mateusz Stachowski (stachowski-mateusz) wrote :

This won't change it's because of permissions.

Marco Trevisan comment from his blog introducing LIM:

Unfortunately we can't access to the menus of a root application... I it's just a simple matter of permissions...

http://blog.3v1n0.net/informatica/linux/ubuntu-introducing-locally-integrated-menus-to-unity-7/#comment-1255930051

Andrea Azzarone (azzar1)
Changed in unity:
status: New → Confirmed
Andrea Azzarone (azzar1)
summary: - Local Menus don't work when running as root or invoking as root with
- "gksu" [video demo]
+ Local Menus and app-indicator don't work when running as root or
+ invoking as root with "gksu" [video demo]
Andrea Azzarone (azzar1)
Changed in unity:
status: Confirmed → In Progress
Changed in unity (Ubuntu):
status: Confirmed → In Progress
Changed in unity:
importance: Undecided → Low
milestone: none → 7.3.1
status: In Progress → Confirmed
Changed in unity (Ubuntu):
status: In Progress → Confirmed
Changed in unity:
milestone: 7.3.1 → none
importance: Low → Undecided
Revision history for this message
Alex Baggott (alex-baggott) wrote :

As part of the big bug review for 16.04 LTS, I have tested this on 15.10 and the bug is still there.

Although sub menus do appear upon pressing, for instance, Alt +F, when Nautilus is launched using gksu, they DON'T appear when it's launched using gksu -k.

From what I understand, gksu has been deprecated in favour of pkexec. I tested the bug by creating a Nautilus policy file and launching it using pkexec, finding that the menus appear below the title bar (as when launching using gksu). However, I don't know how environment preservation (invoked with the -k flag in gksu) pertains to pkexec, so perhaps someone with more knowledge of this can weigh in?

tags: added: desktop-bugscrub-triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.