Bug#809877: xdg-utils: fix for #801048 breaks xdg-open if whitespaces in the filename on Debian/Cinnamon
Chris Lamb
lamby at debian.org
Tue Feb 19 17:57:32 GMT 2019
Hi Per,
(FYI I did not originally file this bug)
> Please, it's not unusable.
Well, /technically/ true but the current situation is almost
unusable for a lot of modern use-cases. :)
In particular, when I download files in
Chromium with identical names they are called:
foo.ext
foo (1).bar
foo (2).bar
foo (3).bar
… so the first file works and opens directly in Chromium but
subsequent ones fail with an obscure error message about /tmp.
(I am not using Cinnamon but the "awesome" window manager)
§
> sh -x /usr/bin/xdg-open "file with spaces.txt"
Attached. So, I think this an issue in run-mailcap:
$ run-mailcap --debug --action=view file\ with\ spaces.xspf
- parsing parameter "--action=view"
- parsing parameter "file with spaces.xspf"
- Reading mime.types file "/home/lamby/.mime.types"...
could not read "/home/lamby/.mime.types" -- No such file or directory
- Reading mime.types file "/usr/local/etc/mime.types"...
could not read "/usr/local/etc/mime.types" -- No such file or directory
- Reading mime.types file "/usr/share/etc/mime.types"...
could not read "/usr/share/etc/mime.types" -- No such file or directory
- Reading mime.types file "/etc/mime.types"...
- extension "xspf" maps to mime-type "application/xspf+xml"
- Reading mailcap file "/home/lamby/.mailcap"...
could not read "/home/lamby/.mailcap" -- No such file or directory
- Reading mailcap file "/etc/mailcap"...
- Reading mailcap file "/usr/local/etc/mailcap"...
could not read "/usr/local/etc/mailcap" -- No such file or directory
- Reading mailcap file "/usr/share/etc/mailcap"...
could not read "/usr/share/etc/mailcap" -- No such file or directory
- Reading mailcap file "/usr/etc/mailcap"...
could not read "/usr/etc/mailcap" -- No such file or directory
Processing file "file with spaces.xspf" of type "application/xspf+xml" (encoding=none)...
- checking mailcap entry "application/xspf+xml; audacious %s; test=test -n "$DISPLAY""
- program to execute: audacious %s
- running test: test -n "$DISPLAY" (result=0=true)
- filename contains shell meta-characters; aliased to '/tmp/fileNt0KnK'
- executing: audacious /tmp/fileNt0KnK
ERROR util.cc:269 [audgui_simple_message]: Error playing file:///tmp/fileNt0KnK:
File format not recognised
… so reassign to src:mime-support and mark as "affects" ?
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org 🍥 chris-lamb.co.uk
`-
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 809877-output.txt
URL: <http://alioth-lists.debian.net/pipermail/pkg-freedesktop-maintainers/attachments/20190219/e515c0f5/attachment.txt>
More information about the Pkg-freedesktop-maintainers
mailing list