<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 - xdg-screensaver reset silently fails on gnome"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=97001">97001</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>xdg-screensaver reset silently fails on gnome
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Portland
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>1.1.0 rc3
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>normal
          </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>vithos@gmail.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>`xdg-screensaver reset` does nothing on gnome but fails silently, returning
exit code 0

<a href="https://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-screensaver.in?id=066b46418f454c0b7e1b5e1478f5f94d91276c14#n533">https://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-screensaver.in?id=066b46418f454c0b7e1b5e1478f5f94d91276c14#n533</a>

If you add --print-reply you can at least get a non-zero exit status and this
message:
Error org.freedesktop.DBus.Error.UnknownMethod: No such method
'SimulateUserActivity'

I believe this is the where gnome rejects the call:
<a href="https://github.com/GNOME/gnome-settings-daemon/blob/f8db21e27f89e58e1439be42052f12d5bdf8ecc1/plugins/screensaver-proxy/gsd-screensaver-proxy-manager.c#L257-L258">https://github.com/GNOME/gnome-settings-daemon/blob/f8db21e27f89e58e1439be42052f12d5bdf8ecc1/plugins/screensaver-proxy/gsd-screensaver-proxy-manager.c#L257-L258</a>

I don't know if there's a replacement API, I couldn't find one.

I'm using Arch Linux,
extra/gnome-shell 3.20.3-1 (gnome) [installed]
extra/xdg-utils 1.1.1-3 [installed]

Though the version reported by xdg-screensaver is different:

❯ xdg-screensaver --version
xdg-screensaver 1.1.0 rc3</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>