[Portland-bugs] [Bug 66144] New: [PATCH] Filenames containing special characters are handled wrong.
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Tue Jun 25 00:25:36 PDT 2013
https://bugs.freedesktop.org/show_bug.cgi?id=66144
Priority: medium
Bug ID: 66144
Assignee: portland-bugs at lists.freedesktop.org
Summary: [PATCH] Filenames containing special characters are
handled wrong.
Severity: normal
Classification: Unclassified
OS: All
Reporter: shpertiary at gmail.com
Hardware: Other
Status: NEW
Version: 1.1.0 rc1
Component: xdg-utils
Product: Portland
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\"
---
> echo START $command_exec $arguments_exec "$arg"
> eval $command_exec $arguments_exec "$arg"
Seems to work.
Regards.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/portland-bugs/attachments/20130625/edb0e688/attachment.html>
More information about the Portland-bugs
mailing list