<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - Improvement of detecting KDE session"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=63157">63157</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>Improvement of detecting KDE session
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>qcxhome@gmail.com
          </td>
        </tr>

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

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

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

        <tr>
          <th>Component</th>
          <td>xdg-utils
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Portland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>I see that xdg-utils detects whether a KDE session is running by checking the
equivlent between KDE_FULL_SESSION and true in every xdg-* utility. According
to what a document in KDE's techbase describes, it'd better check whether
KDE_FULL_SESSION is an empty string instead of a true value.

So, in each detectDE function in every xdg-* utility, following modification is
better and stable for KDE's future possible change to variable
KDE_FULL_SESSION.

if [ x"$KDE_FULL_SESSION" != x"" ]; then DE=kde;

Ref:
<a href="http://techbase.kde.org/KDE_System_Administration/Environment_Variables#KDE_FULL_SESSION">http://techbase.kde.org/KDE_System_Administration/Environment_Variables#KDE_FULL_SESSION</a></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>