Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 355517 - x11-misc/xdg-utils: xdg-open should refer to `chromium', not `chromium-browser' as one of its fall-back browsers
Summary: x11-misc/xdg-utils: xdg-open should refer to `chromium', not `chromium-browse...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Chromium Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-19 06:24 UTC by Dean Matzkov
Modified: 2011-03-09 09:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dean Matzkov 2011-02-19 06:24:18 UTC
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.
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2011-02-19 06:52:33 UTC
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/
Comment 2 Mike Gilbert gentoo-dev 2011-02-19 18:50:43 UTC
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.
Comment 3 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-02-20 09:10:41 UTC
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.
Comment 4 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-02-20 09:11:55 UTC
(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.
Comment 5 Nirbheek Chauhan (RETIRED) gentoo-dev 2011-02-20 20:00:24 UTC
(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 6 Samuli Suominen (RETIRED) gentoo-dev 2011-02-21 18:14:11 UTC
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
Comment 7 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-02-22 13:33:57 UTC
Done for www-client/chromium-11.x (the change is a bit risky). I will work on chromium-bin next.
Comment 8 Mike Gilbert gentoo-dev 2011-02-22 21:06:22 UTC
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.
Comment 9 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-02-22 21:10:12 UTC
(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, ...").
Comment 10 Paweł Hajdan, Jr. (RETIRED) gentoo-dev 2011-03-09 09:42:57 UTC
(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.