<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 7, 2014 at 2:43 PM, Pekka Paalanen <span dir="ltr"><<a href="mailto:ppaalanen@gmail.com" target="_blank">ppaalanen@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On Tue, 7 Jan 2014 14:26:36 -0500<br>
"Jasper St. Pierre" <<a href="mailto:jstpierre@mecheye.net">jstpierre@mecheye.net</a>> wrote:<br>
<br>
> On Tue, Jan 7, 2014 at 9:07 AM, Martin Peres<br>
> <<a href="mailto:martin.peres@free.fr">martin.peres@free.fr</a>> wrote:<br>
><br>
</div><div class="im">> > Would it be ok for you if the compositor asked the user to<br>
> > agree for the program to<br>
> > do the operation? If so, we can guarantee that this is really<br>
> > the user's intent and<br>
> > allow the application. We can also add a security warning with<br>
> > a "Do not ask again"<br>
> > checkbox. Would it be satisfactory to you?<br>
> ><br>
><br>
> The user opened up a screen recording app. The user's intent is<br>
> very much to record the screen. We don't need to ask the user<br>
> again with a prompt.<br>
<br>
</div>For just screenshooting and recording, how about a simple setting<br>
"allow all programs capture the screen? yes/no" in the compositor's<br>
configuration dialog? Since it sounds like any automatic<br>
authentication/authorization scheme is going to hit cornercases.<br></blockquote><div><br></div><div>Because I don't want my weather app broadcasting my porn preferences to Twitch.tv. Android solves this by telling the user up-front what the app is requesting access to, and (experimentally) allowing the user to turn off fine-grained access for any component.<br>
<br></div><div>I think we need some way to request permissions, but it's up to the compositor to determine how these are granted. If it's a modal "yes/no" dialog, or if it's a lookup based on the application ID, or a blanket policy doesn't matter, the client just gets back a "go ahead" or a "nope" in response.<br>
<br></div><div>This is very similar to PolicyKit, so talking with David Zeuthen might be useful here if he has any work in the area to make PolicyKit more like an Android model.<br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
With that, write a screenshooting protocol interface, that is<br>
bindable for all clients, and informs the client whether capturing<br>
at will is allowed or not. When not, the client can show an<br>
informational message "Screen capturing is disabled in your<br>
compositor preferences."<br>
<br>
Make that support dynamic enable/disable and make access denied a non-fatal error.<br>
</blockquote></div><br>-- <br> Jasper<br>
</div></div>