<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 - Common up xdg-screensaver code that deals with Freedesktop desktop idleness inhibition API"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=98614">98614</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Common up xdg-screensaver code that deals with Freedesktop desktop idleness inhibition API
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Portland
          </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>xdg-utils
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>rrt@sc3d.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>At present xdg-screensaver contains several almost-identical functions to deal
with the various desktops that implement the Freedesktop desktop idleness
inhibition DBus API, or something like it.

One example is the code for MATE, which bears the following comment:

# DBUS interface for mate-screensaver
# This is same as gnome's for now but may change in the future as MATE
# does not follow gnome's developement necessarily.

I think this is an unfortunate attitude to take with respect to Freedesktop
standards in Freedesktop project code. We should be optimistic about the
adoption of standards, and encourage their use.

Hence, I suggest that the following functions have their common code factored
out:

screensaver_freedesktop (ironically only used for KDE)
screensaver_mate_screensaver
screensaver_gnome_screensaver (also used for GNOME 3's gnome-shell)
screensaver_cinnamon_screensaver

Even some DBus end-points not covered by the Freedesktop spec, such as
"SimulateUserActivity" are common between most or all of the above, with the
exception of a different prefix.</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>