I don't think it is Evince-specific either, but that was the only app that I encountered having the issue. It's definitely not X related however since this is Wayland-specific. The "wayland-0" socket naming convention seems to come from libwayland-server, so maybe that's a reasonable package to provide a Wayland abstraction, but then that needs to be included in the Apparmour profiles for GUI programs.
Note also that the socket name may change depending on the server implementation or at runtime via the WAYLAND_DISPLAY environment variable (which works much in the same way as DISPLAY does for X), if that does happen then the same problem will occur. I don't know how to fix that in Apparmour though. -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to apparmor in Ubuntu. https://bugs.launchpad.net/bugs/1507469 Title: Evince's Apparmour profile prevents opening docs from other apps under Wayland Status in AppArmor: New Status in apparmor package in Ubuntu: New Bug description: Evince fails to run when launched from another app (Nautilus, Ephy, etc) and running under Wayland. For example, nothing appears to happen when double-clicking on a PDF file in Nautilus. Evince is launched, but its Apparmour profile is preventing access to a Wayland socket, hence it immediately exits. The following is typical of the reported error: > Oct 19 15:06:40 payens kernel: audit: type=1400 audit(1445227600.333:26): apparmor="DENIED" operation="connect" profile="/usr/bin/evince" name="/run/user/1000/wayland-0" pid=12956 comm="evince" requested_mask="wr" denied_mask="wr" fsuid=1000 ouid=1000 Adding the following lines to it's local Apparmour config and reloading Apparmour fixes the problem: > owner /run/user/*/wayland-* rw, > owner /run/user/*/weston-shared-* rw, ProblemType: Bug DistroRelease: Ubuntu 15.10 Package: evince 3.16.1-0ubuntu1 ProcVersionSignature: Ubuntu 4.2.0-16.19-generic 4.2.3 Uname: Linux 4.2.0-16-generic x86_64 ApportVersion: 2.19.1-0ubuntu2 Architecture: amd64 CurrentDesktop: GNOME Date: Mon Oct 19 17:49:19 2015 InstallationDate: Installed on 2015-07-22 (89 days ago) InstallationMedia: Ubuntu-GNOME 15.04 "Vivid Vervet" - Release amd64 (20150422) SourcePackage: evince UpgradeStatus: Upgraded to wily on 2015-08-27 (52 days ago) To manage notifications about this bug go to: https://bugs.launchpad.net/apparmor/+bug/1507469/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp