[PATCH weston] introduces a setting to give permission to any client to do screenshots

Timothée Ravier siosm99 at gmail.com
Sun Dec 15 15:52:44 PST 2013

On 16/12/2013 00:21, Timothée Ravier wrote:
> Thus packaged screenshot applications can include a privileged setup
> step which add a file containing the application full path in a
> directory writable only by root
> (/etc/wayland/accepted-screenshoters.d/appname for example). The
> compositor would check all files in this directory before launching the
> application (or load the list of allowed applications at startup).
> If the application is not listed in this file, a confirmation window
> should be displayed (requesting the user password). To make the setting
> permanent, administrative rights would be required. For this, polkit
> could be used.

polkit could also be used for the whole process of deciding whether a
screenshot action is allowed or not:

* The compositor would first request authorization for the screenshot
action to polkit;
* polkit would check if the action is legitimate using the authorization
rules defined on the system;
* If no rules matches, a dialog requesting confirmation by the user is
* If the polkit answer is positive, the compositor would launch the
screenshot application.

Adding rules is a little bit more difficult in this case, but this has
the advantage of reusing an already developed architecture.

Timothée Ravier

More information about the wayland-devel mailing list