Hi, Fathi Boudra skrev:
I fixed it upstream, based on your patch with some changes: - check input file after paths/file:// decoding
Good :-)
- remove decode URLs (perl isn't used on upstream code, but this part could be adjusted for debian package;)
Note that without decoding it won't be able to handle URLs with spaces and many other non-alphanumeric characters.
Maybe the code could check if perl is available and only then use it. Or perhaps use awk instead? awk is used in other places in xdg-utils.
Another option is to defer to a browser for all URLs with percent-encoded characters.
- test mimeopen first, then run-mailcap as in current upstream code.
I'm thinking that maybe run-mailcap is more appropriate than mimeopen on Debian for people who don't run a desktop environment. It doesn't comply with any freedesktop.org standards but it's standard in Debian.
mimeopen picks strange default apps. For example, if I open a .odp file, it runs evince instead of OpenOffice.org. run-mailcap runs OpenOffice.
-- Pelle -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org