<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 - Weird back-quoting in xdg-utils-common.in"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=107995">107995</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Weird back-quoting in xdg-utils-common.in
          </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>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>alexl@redhat.com
          </td>
        </tr></table>
      <p>
        <div>
        <pre>This code in xdg-utils-common.in seems weird:
<a href="https://github.com/freedesktop/xdg-utils/blob/master/scripts/xdg-utils-common.in#L317">https://github.com/freedesktop/xdg-utils/blob/master/scripts/xdg-utils-common.in#L317</a>

copied here:

 elif `dbus-send --print-reply --dest=org.freedesktop.DBus
/org/freedesktop/DBus org.freedesktop.DBus.GetNameOwner
string:org.gnome.SessionManager > /dev/null 2>&1` ; then DE=gnome;

Why are we running dbus-send and then executing its output, after having sent
it to /dev/null.

It seems to get the right result:

$ if `false > /dev/null`; then echo YES; fi
$ if `true > /dev/null`; then echo YES; fi
YES

But, why?</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>