Since the main executable for www-client/chromium is `chromium', the xdg-open script should refer to that, and not `chromium-browser' as one of its fall-back browsers. The fix for this should be trivial, as xdg-open is a shell script.
What about chromium-bin package? And if this is not a Gentoo thing to rename the binary as plain `chromium`, this should get reported under xdg-utils product at http://bugs.freedesktop.org/
Ubuntu, Debian, and Fedora seem to install it as /usr/bin/chromium-browser. I don't think upstream has an official naming convention. However, the man page does say chromium-browser(1) in the header.
I'm fine with renaming the launcher to chromium-browser for consistency with other distros. My understanding is that this rename would fix the issue, so if you think it's a good idea please just assign this bug to chromium@g.o.
(In reply to comment #1) > What about chromium-bin package? Ah, right, even if we rename chromium to chromium-browser, we still have chromium-bin. Even if we rename it to chromium-browser-bin, xdg will still be confused. Eh, I'd just like to get rid of chromium-bin.
(In reply to comment #4) > (In reply to comment #1) > > What about chromium-bin package? > > Ah, right, even if we rename chromium to chromium-browser, we still have > chromium-bin. Even if we rename it to chromium-browser-bin, xdg will still be > confused. Eh, I'd just like to get rid of chromium-bin. > Why not make chromium-bin also install chromium-browser? No one should install both chromium-bin and chromium anyway (you can add a blocker if required). fwiw, this is what firefox/firefox-bin do as well.
Comment #5 makes the most sense. Re-assign to chromium@ for rename. Or at least provide symlinks to match most other distros naming. Or at very least maintain one sed in xdg-utils ebuild src_prepare sorting this out yourself :P
Done for www-client/chromium-11.x (the change is a bit risky). I will work on chromium-bin next.
Heads-up: Changing the desktop file name causes Chromium to pop up the "make me the default browser" prompt. Not a big deal, but I thought I would document it.
(In reply to comment #8) > Heads-up: Changing the desktop file name causes Chromium to pop up the "make me > the default browser" prompt. Not a big deal, but I thought I would document it. As long as making the default works, I'd say it's fine, and any elog message could cause even more confusion ("you may see a prompt, ...").
(In reply to comment #7) > Done for www-client/chromium-11.x (the change is a bit risky). I will work on > chromium-bin next. chromium-bin is masked for removal, closing.