<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Add an API for taking screenshots and recording screencasts"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98894">98894</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Add an API for taking screenshots and recording screencasts
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Wayland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>Other
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>wayland
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>wayland-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>frdsktp@genodeftest.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Currently, some wayland compositors have their own screenshot and/or screencast
feature, such as weston. Others, such as gnome-shell, have an additional public
DBus API [1]. For KWin, a similar feature is in the works [2].

This situation is bad because it looks like application developers need to
write a separate implementation for their tools for every desktop shell /
environment. For the sake of simplicity, can you please add one API (probably
an extension to the wayland protocol) for all desktop environments?

[1]
<a href="https://git.gnome.org/browse/gnome-shell/tree/data/org.gnome.Shell.Screencast.xml">https://git.gnome.org/browse/gnome-shell/tree/data/org.gnome.Shell.Screencast.xml</a>
[2]
<a href="https://blog.martin-graesslin.com/blog/2016/11/from-window-killing-to-screenshot/">https://blog.martin-graesslin.com/blog/2016/11/from-window-killing-to-screenshot/</a>

Some notes:
* Taking screenshots and recording screencasts should be an optional feature.
* The wayland compositor should be able to decide (based on rules or user
decisions) whether to allow or deny the request. For this, applications need to
have a way to provide information about themselves (like application name and
icon) and why they want to take a screenshot/screencast.
* Applications must handle being denied to take a screenshot/screencast
* there should be a way to select regions of the screen(s) only. I don't care
whether this should be implemented on client or server (compositor) side.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>