Adding the following rule to
/var/lib/snapd/apparmor/profiles/snap.chromium.chromium and reloading
the profile is enough to fix the problem:

    /run/user/[0-9]*/.mutter-Xwaylandauth.* r,

** Description changed:

  (initially reported by Laney on IRC)
  
  I upgraded my eoan VM with silo 3762¹ which contains the gnome 3.33.90
  update, and after logging out and back into a Wayland session, the
  chromium snap fails to start:
  
-     $ chromium
-     No protocol specified
-     (chrome:1917): Gtk-WARNING **: 16:08:39.262: cannot open display: :0
+     $ chromium
+     No protocol specified
+     (chrome:1917): Gtk-WARNING **: 16:08:39.262: cannot open display: :0
  
  I'm seeing the following denial in the journal:
  
-     name="/run/user/1000/.mutter-Xwaylandauth-5J7F6Z",
+     name="/run/user/1000/.mutter-Xwaylandauth.5J7F6Z",
  requested_mask="r", denied_mask="r"
  
- 
- ¹ https://launchpad.net/~ci-train-ppa-service/+archive/ubuntu/3762/+packages
+ ¹ https://launchpad.net/~ci-train-ppa-
+ service/+archive/ubuntu/3762/+packages

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to chromium-browser in Ubuntu.
https://bugs.launchpad.net/bugs/1840925

Title:
  [snap] chromium doesn't start under Wayland with GNOME 3.33

Status in snapd:
  New
Status in chromium-browser package in Ubuntu:
  Triaged

Bug description:
  (initially reported by Laney on IRC)

  I upgraded my eoan VM with silo 3762¹ which contains the gnome 3.33.90
  update, and after logging out and back into a Wayland session, the
  chromium snap fails to start:

      $ chromium
      No protocol specified
      (chrome:1917): Gtk-WARNING **: 16:08:39.262: cannot open display: :0

  I'm seeing the following denial in the journal:

      name="/run/user/1000/.mutter-Xwaylandauth.5J7F6Z",
  requested_mask="r", denied_mask="r"

  ¹ https://launchpad.net/~ci-train-ppa-
  service/+archive/ubuntu/3762/+packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/snapd/+bug/1840925/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to