Comment 6 for bug 1230366

Revision history for this message
Matthew Paul Thomas (mpt) wrote :

I've tweaked the design to solve a problem with video+microphone access. <https://wiki.ubuntu.com/AccountPrivileges?action=diff&rev2=20&rev1=19>

I was trying to solve the problem that an app trying to record video and nothing else (Vine, for example) shouldn't result in two prompts in quick succession, one for camera access and one for microphone access.

The way I originally solved it was to say that if an app tries to access anything while the the permission prompt for something is up, the two prompts should be combined. But that was over-broad: it could have resulted in riders, for example an app that really needed your location trying to access your contacts at the same time, resulting in a single prompt for both. This would be exactly the all-or-nothing choice that the prompt model aims to prevent.

Instead I've special-cased video recording: if you give an app permission to record video, it should automatically have access to the microphone when -- and only when -- it is recording video. If you just give the app access to your camera for still photos, then accessing your microphone should require a separate prompt.