[snap] cannot pause video with bluetooth headset buttons any more (MPRIS denied by apparmor)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
chromium-browser (Ubuntu) |
Fix Released
|
Medium
|
Olivier Tilloy |
Bug Description
On Ubuntu 19.04 I could press the button on my Bluetooth headset and the YouTube video playing in my Chromium would pause/resume. This no longer works in 19.10. What happens instead is I get an OSD popup with a NO ENTRY symbol (circle with a diagonal backslash) from gnome-shell.
I suspect the additional sandboxing of the snap package is the culprit.
ProblemType: Bug
DistroRelease: Ubuntu 19.10
Package: chromium-browser 76.0.3809.
ProcVersionSign
Uname: Linux 5.3.0-13-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu8
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
DRM.card0-DP-1:
enabled: disabled
dpms: Off
status: disconnected
edid-base64:
modes:
DRM.card0-DP-2:
enabled: disabled
dpms: Off
status: disconnected
edid-base64:
modes:
DRM.card0-HDMI-A-1:
enabled: disabled
dpms: Off
status: disconnected
edid-base64:
modes:
DRM.card0-HDMI-A-2:
enabled: disabled
dpms: Off
status: disconnected
edid-base64:
modes:
DRM.card0-eDP-1:
enabled: enabled
dpms: On
status: connected
edid-base64: AP/////
modes: 1920x1080
Date: Mon Oct 21 15:04:13 2019
DiskUsage:
Filesystem Type Size Used Avail Use% Mounted on
/dev/nvme0n1p5 ext4 284G 208G 62G 78% /
tmpfs tmpfs 7,7G 122M 7,6G 2% /dev/shm
/dev/nvme0n1p5 ext4 284G 208G 62G 78% /
EcryptfsInUse: Yes
InstallationDate: Installed on 2019-06-12 (130 days ago)
InstallationMedia: Ubuntu 19.04 "Disco Dingo" - Release amd64 (20190416)
MachineType: LENOVO 20Q0CTO1WW
ProcKernelCmdLine: BOOT_IMAGE=
Snap.ChromeDriv
Snap.ChromiumVe
SourcePackage: chromium-browser
UpgradeStatus: Upgraded to eoan on 2019-10-18 (2 days ago)
dmi.bios.date: 07/18/2019
dmi.bios.vendor: LENOVO
dmi.bios.version: N2JET73W (1.51 )
dmi.board.
dmi.board.name: 20Q0CTO1WW
dmi.board.vendor: LENOVO
dmi.board.version: SDK0J40697 WIN
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: LENOVO
dmi.chassis.
dmi.modalias: dmi:bvnLENOVO:
dmi.product.family: ThinkPad X390
dmi.product.name: 20Q0CTO1WW
dmi.product.sku: LENOVO_
dmi.product.
dmi.sys.vendor: LENOVO
Changed in chromium-browser (Ubuntu): | |
status: | Fix Committed → Fix Released |
I'm seeing this in journalctl -b -g chromium:
spal. 19 15:00:35 blynas dbus-daemon[4473]: apparmor="DENIED" operation= "dbus_bind" bus="session" name="org. mpris.MediaPlay er2.chromium. instance5306" mask="bind" pid=5306 label=" snap.chromium. chromium" chromium. desktop[ 4596]: [5306:5650: 1019/150035. 747129: ERROR:bus. cc(555) ] Failed to get the ownership of org.mpris. MediaPlayer2. chromium. instance5306: Connection ":1.116" is not allowed to own the service "org.mpris. MediaPlayer2. chromium. instance5306" due to AppArmor policy
spal. 19 15:00:35 blynas chromium_
There's also
spal. 19 14:45:47 blynas kernel: audit: type=1107 audit(157148554 7.156:75) : pid=1458 uid=103 auid=4294967295 ses=4294967295 msg='apparmor= "DENIED" operation= "dbus_method_ call" bus="system" path="/" interface= "org.freedeskto p.DBus. ObjectManager" member= "GetManagedObje cts" mask="send" name="org.bluez" pid=5306 label=" snap.chromium. chromium" peer_pid=1496 peer_label= "unconfined"
exe= "/usr/bin/ dbus-daemon" sauid=103 hostname=? addr=? terminal=?'
but I think it the bluetooth headset button works via MPRIS, rather than directly through bluez.