xdg-open fails with spaces in filename
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
xdg-utils (Debian) |
Fix Released
|
Unknown
|
|||
xdg-utils (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Invalid
|
Undecided
|
Unassigned | ||
Maverick |
Fix Released
|
Medium
|
Unassigned |
Bug Description
Binary package hint: xdg-utils
$ ls a\ b.pdf
a b.pdf
$ xdg-open a\ b.pdf
The above results in an attempt to open file "a" and file "b.pdf" with evince, when one would expect it to open "a b.pdf" with evince.
This is on Ubuntu 10.10.
$ apt-cache policy xdg-utils
xdg-utils:
Installed: 1.0.2+cvs20100307-1
Candidate: 1.0.2+cvs20100307-1
Version table:
*** 1.0.2+cvs20100307-1 0
500 http://
100 /var/lib/
ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: xdg-utils 1.0.2+cvs20100307-1
ProcVersionSign
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelMo
Architecture: amd64
Date: Tue Nov 30 17:45:23 2010
Dependencies:
PackageArchitec
ProcEnviron:
LANG=en_ZA.utf8
SHELL=/bin/bash
SourcePackage: xdg-utils
Related branches
Changed in xdg-utils (Debian): | |
status: | Unknown → Fix Released |
Changed in xdg-utils (Ubuntu Lucid): | |
status: | New → Invalid |
Changed in xdg-utils (Ubuntu Maverick): | |
importance: | Undecided → Low |
status: | New → Triaged |
Changed in xdg-utils (Ubuntu Maverick): | |
importance: | Low → Medium |
Changing line 398 from
$command_exec $1
to
$command_exec "$1"
appears to fix the problem.