Bug 27959

Summary: [xdg-open] Spaces in filename
Product: Portland Reporter: Vieira <jdvieira>
Component: xdg-utilsAssignee: Portland Bugs <portland-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: critical    
Priority: medium CC: lambchop468
Version: 1.0   
Hardware: All   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: patch to xdg-open accept filenames with spaces when using open_generic()

Description Vieira 2010-05-04 05:19:28 UTC
Created attachment 35408 [details] [review]
patch to xdg-open accept filenames with spaces when using open_generic()

In configuration without a DE (i.e., running open_generic()), if you try to run xdg-open with a filename which contains spaces an error will occur.

I wrote this small patch that fixes the issue.

Steps to reproduce:
$ xdg-open 1\ 2.jpg
feh WARNING: 1 does not exist - skipping
feh WARNING: 2.jpg does not exist - skipping
feh - No loadable images specified.
Use feh --help for detailed usage information.

Version tested: 
xdg-utils-1.0.2 (latest on website).
Comment 1 Alexander Lam 2010-05-16 08:40:03 UTC
Oops, I created bug #28133 without checking this one.
Comment 2 Alexander Lam 2010-05-16 08:40:33 UTC
*** Bug 28133 has been marked as a duplicate of this bug. ***
Comment 3 Rex Dieter 2010-05-16 10:31:51 UTC
fixed in cvs, thanks.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.