<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 defualt is inconsistent with xdg-open"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=99106">99106</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>xdg-mime defualt is inconsistent with xdg-open
          </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>major
          </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>tezeb+freedesktop@outoftheblue.pl
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Steps to reproduce:
1. DE set to gnome3
2. unset XDG_DATA_HOME
3. have multiple valid pdf applications installed(ie. gimp, evince)
4. assume no custom settings for handlers
5. run: xdg-mime query default application/pdf
With XDG_UTILS_DEBUG_LEVEL, it will display multiple paths being checked. It
finds gimp.desktop in /usr/share/applications/defaults.list
6. run: xdg-mime default /usr/share/applications/evince.desktop application/pdf
Again, debug shows:
Updating /home/user/.local/share/applications/mimeapps.list
7. run: xdg-mime query default application/pdf
It displays '/usr/share/applications/evince.desktop' as expected.

8. run: xdg-open xxx.pdf
It opens gimp.desktop(or whatever was the default).

The BUG:
Internally xdg-open uses gvfs-open(version 1.30.3 here), which uses ~/.config/
as default XDG_DATA_HOME when the variable is unset, but xdg-mime uses some awk
magic and completly different path.</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>