unity7 plug needs to be updated to allow menus export

Bug #1576287 reported by Sebastien Bacher
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Fix Released
Undecided
Jamie Strandboge

Bug Description

The current unity7 security plug currently doesn't allow menu exports over dbus, that's needed to have them displayed in unity

tags: added: snap-desktop-issue
tags: added: snapd-interface
Changed in snapcraft (Ubuntu):
assignee: nobody → Jamie Strandboge (jdstrand)
affects: snapcraft (Ubuntu) → snapd (Ubuntu)
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

FYI, this is the policy that is queued:

# gmenu
dbus (send)
    bus=session
    interface=org.gtk.Actions
    path={/org/gtk/Application/anonymous{,/**},/com/canonical/unity/gtk/window/[0-9]*}
    member=Changed
    peer=(label=unconfined),

dbus (receive)
    bus=session
    interface=org.gtk.Actions
    path={/org/gtk/Application/anonymous{,/**},/com/canonical/unity/gtk/window/[0-9]*}
    member={Activate,DescribeAll}
    peer=(label=unconfined),

dbus (receive)
    bus=session
    interface=org.gtk.Menus
    path={/org/gtk/Application/anonymous{,/**},/com/canonical/unity/gtk/window/[0-9]*}
    member={Start,End}
    peer=(label=unconfined),

dbus (receive,send)
    bus=session
    interface=org.gtk.Menus
    path={/org/gtk/Application/anonymous{,/**},/com/canonical/unity/gtk/window/[0-9]*}
    member=Changed
    peer=(label=unconfined),

Revision history for this message
Jamie Strandboge (jdstrand) wrote :
Changed in snapd (Ubuntu):
status: New → Fix Committed
Revision history for this message
Tyler Hicks (tyhicks) wrote :

@jamie Isn't AppMenu API access needed for global menu access? Snippet from the ubuntu-unity7-base abstraction:

  #
  # Allow access for connecting to/communication with the appmenu
  #
  # dbusmenu
  dbus (send)
       bus=session
       interface="com.canonical.AppMenu.*",
  dbus (receive, send)
        bus=session
        path=/com/canonical/menu/**,

Revision history for this message
Jamie Strandboge (jdstrand) wrote :

@Tyler, yes, that sounds right-- the commit is for non-global dbus menu (but not com.canonical.dbusmenu). Basically there are 3 things that are needed:
1. what was committed
2. AppMenu
3. com.canonical.dbusmenu (old)

'3' is being tracked in another bug. '2' should be a new bug at this point since 2.0.3 should have '1' which was tacked by this bug.

Revision history for this message
Jamie Strandboge (jdstrand) wrote :
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

org.gtk.Menus was fixed in 2.0.3, now in xenial-updates.

Changed in snapd (Ubuntu):
status: Fix Committed → Fix Released
Revision history for this message
Jamie Strandboge (jdstrand) wrote :

Tyler, you mentioned AppMenu was needed for global menus-- I can say that the changes in 2.0.3 allow the gnome-calculator-app to use the global menu gust fine. AppMenu is still planned in bug #1581191, but I need to find another consumer.

Revision history for this message
Martin Pitt (pitti) wrote :

The xenial-proposed in the SRU queue has some issues:

 - Broken bug ref syntax in changelog (Closes: LP:#1576287), this does not get recognized by dpkg and LP
 - #1576287 is allegedly already fixed in xenial (2.0.3), so changelog should either not mention it, or the bug reopened
 - upload 2.0.4 to yakkety first
 - Please add SRU info to the referenced bugs (testing, regression potential)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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