<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-mime does not write the file it reads in a query"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=95051">95051</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>xdg-mime does not write the file it reads in a query
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>unspecified
          </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>freedesktop@wgmd.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>A xdg-mime query will read .config/mimeapps.list first
(<a href="https://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-mime.in?id=ef8a58be4049697bb6347c3c5b8fff4d2b2deb86#n397">https://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-mime.in?id=ef8a58be4049697bb6347c3c5b8fff4d2b2deb86#n397</a>).

But setting a default application will write to
.local/share/applications/mimeapps.list
(<a href="https://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-mime.in#n244">https://cgit.freedesktop.org/xdg/xdg-utils/tree/scripts/xdg-mime.in#n244</a>).

This way one can't change the default application, if .config/mimeapps.list was
created by some means.

Also, xdg-mime will fail with returncode 4 in that case, which isn't very
descriptive.</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>