<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 --- - [PATCH] Filenames containing special characters are handled wrong."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=66144">66144</a>
          </td>
        </tr>

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

        <tr>
          <th>Summary</th>
          <td>[PATCH] Filenames containing special characters are handled wrong.
          </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>shpertiary@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>1.1.0 rc1
          </td>
        </tr>

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

        <tr>
          <th>Product</th>
          <td>Portland
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Filenames containing special characters are handled wrong.

For example:

$xdg-open double_menu\ \(2\).jpg 
START /usr/bin/xv double_menu (2).jpg
/usr/bin/xdg-open: eval: line 573: syntax error near unexpected token `('
/usr/bin/xdg-open: eval: line 573: `/usr/bin/xv double_menu (2).jpg'


Bash escaping sucks:). I have done following to fix:

$diff /tmp/xdg-open /usr/bin/xdg-open 
572,573c572,573
<                 echo START $command_exec $arguments_exec \"$arg\"
<                 eval $command_exec $arguments_exec \"$arg\"
---
<span class="quote">>                 echo START $command_exec $arguments_exec "$arg"
>                 eval $command_exec $arguments_exec "$arg"</span >

Seems to work.

Regards.</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>