<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:pelle@debian.org" title="Per Olofsson <pelle@debian.org>"> <span class="fn">Per Olofsson</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - xdg-open only open images and links in browser in "generic""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92312">bug 92312</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>RESOLVED
           </td>
         </tr>

         <tr>
           <td style="text-align:right;">Resolution</td>
           <td>---
           </td>
           <td>NOTABUG
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - xdg-open only open images and links in browser in "generic""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92312#c5">Comment # 5</a>
              on <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED NOTABUG - xdg-open only open images and links in browser in "generic""
   href="https://bugs.freedesktop.org/show_bug.cgi?id=92312">bug 92312</a>
              from <span class="vcard"><a class="email" href="mailto:pelle@debian.org" title="Per Olofsson <pelle@debian.org>"> <span class="fn">Per Olofsson</span></a>
</span></b>
        <pre>(In reply to Ivan Tham from <a href="show_bug.cgi?id=92312#c4">comment #4</a>)
<span class="quote">> Sorry, that works, what I mean is:

>     xdg-open <a href="http://overthewire.org/img/domokitten.png">http://overthewire.org/img/domokitten.png</a>

> Is that out of topic?

> Here is the log: <a href="http://ix.io/ldV">http://ix.io/ldV</a></span >

Unfortunately that is difficult to accomplish within xdg-utils itself in a
secure manner. Not even GNOME does it.

One solution could be if you install KDE (or at least kde-runtime) and set
XDG_CURRENT_SESSION=KDE. Then xdg-open will use kde-open which seems to do what
you want. The following command opens the image in eog for me:

  XDG_CURRENT_DESKTOP=KDE xdg-open <a href="http://overthewire.org/img/domokitten.png">http://overthewire.org/img/domokitten.png</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>