Comment # 23 on bug 979265 from
(In reply to Simon Lees from comment #22)
> Jiri added a fix for something related to the second issue at some point,
> https://build.opensuse.org/package/view_file/openSUSE:Leap:42.1/xdg-utils/
> xdg-mime-generic-do-not-return-more-than-one-default.patch?expand=1

That patch doesn't help in this case, the patch is actually included in the
13.2 and Factory packages which I both tried. It apparently fixes a problem
when the mimetype (and a default application) is listed in both defaults.list
and mimecache.cache on a quick glance.

That line does cut when it encounters an ';' though (even before that patch you
mentioned), just like it should be done for mimeapps.list too I'd say.

I.e. changing:
           trader_result=`awk -v mimetype="$MIME" '
    BEGIN {
...
    }
' $mimeapps_list`
to:
           trader_result=`awk -v mimetype="$MIME" '
    BEGIN {
...
    }
' $mimeapps_list | cut -d ';' -f 1`
a few lines above should fix this problem.

Haven't tried that yet though, I will do so tomorrow. (it's too late now... ;)
)


You are receiving this mail because: