Hi,

On Fri, Feb 26, 2010 at 5:09 PM, Per Olofsson <pe...@dsv.su.se> wrote:
> I've written a patch which only calls the xdg-mime code if it's an actual
> file in the filesystem. It uses the same code path as the run-mailcap code.
> I also moved mimeopen there since it can't handle URLs either. Take a look
> at it in the git repo.

I fixed it upstream, based on your patch with some changes:
- check input file after paths/file:// decoding
- remove decode URLs (perl isn't used on upstream code, but this part
could be adjusted for debian package;)
- keep test style consistent with upstream code (e.g. avoid mimeopen
-n "$file" && exit_success)
- test mimeopen first, then run-mailcap as in current upstream code.

@Michael: could you try the attached xdg-open and let us know if it
solves the issue.

Cheers,

Fathi

Attachment: xdg-open
Description: Binary data

Reply via email to