<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 --- - xdg-desktop-menu never removes entries from defaults.list"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=71825">71825</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>xdg-desktop-menu never removes entries from defaults.list
          </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>astrand@lysator.liu.se
          </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>We are registering a mime type association when are are installing our
application by these lines in the package postinstall script:

$ xdg-desktop-menu install /opt/thinlinc/lib/tlclient/thinlinc-client.desktop
$ xdg-mime install /opt/thinlinc/lib/tlclient/thinlinc-client-mime.xml

Same thing but "uninstall" when the package is removed. Unfortunately,
after removing the package, the type is still to be found:

$ xdg-mime query default application/vnd.cendio.thinlinc.clientconf
thinlinc-client.desktop

This is because xdg-desktop-menu adds stuff to
/usr/local/share/applications/defaults.list, but never removes anything.</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>