Debian Planet










Welcome to Debian Planet

Search

Apt-get into it.
Main Menu

  • Home

  • Topics

  • Web Links

  • Your Account

  • Submit News

  • Stats

  • Top 10

  • Debian

    These are important Debian sites one should not be without!

  • Official Debian site

  • Package search

  • Mailing list archives

  • Bug reports

  • Debian on CD

  • Unofficial woody CD ISOs

  • Unofficial APT sources

  • Developers' Corner

    Other great Debian news sources:

  • Debian Weekly News

  • Kernel Cousin Debian

    (Debian mailing lists digested)
  • Community Groups

    Need help? You're not alone on this planet.

  • debianHELP

    (User support site)

  • Debian International

  • DebianForum.de

    (Deutsch)

  • EsDebian

    (español)

  • DebianWorld

    (français)

  • MaximumDebian

    (Italiano)

  • DebianUsers

    (Korean)

  • Debian-BR

    (Português)

  • IRC

    The place to get help on a Debian problem (after reading docs) or to just chat and chill is #debian on irc.debian.org.

    Many of the Debian Planet staff live there so pop by and say hello.

    Wanna write?

    Got that latest or greatest scoop? Perhaps you have some important news for the Debian community? Submit a news item!

    Or perhaps you've written a rather ground breaking insight into some aspect of Debian and you feel compelled to share it with others? Knock up a longer editorial article and send it to the editors.

    Sponsorship

    DP is sponsored by Xinit Systems and kieser.net.

    Domains paid for and hosted by uklinux.net.

    Buy your Debian merchandise at DebianShop.com.

    Who's Online

    There are currently, 70 guest(s) and 5 member(s) that are online.

    You are Anonymous user. You can register for free by clicking here.

      
    Does www-browser belong in /etc/alternatives?
    Contributed by bronson on Friday, November 30 @ 05:38:48 GMT

    Debian
    Many programs now spawn browsers (dhelp, gnome-term, ...). Unfortunately, the user must configure each program separately to tell it which browser to launch. It's very time consuming.

    Debian has the perfect solution to this: /etc/alternatives. Every browser package would provide a "www-browser" alternative. By default, Debian packages would launch "www-browser" when they want to spawn a web browser. Now the user can then select his or her favorite browser using update-alternatives, and the change would be noticed instantly and everywhere.

    To implement this, the following packages need to be patched:

    Browsers: konqueror, galeon, mozilla, netscape, skipstone, lynx, w3m ...
    Packages: dhelp, gnome-term, ... (I'm sure there are many more)

    I'm happy to create and submit these patches if they would be accepted. Is this a good idea?

    There might one minor issue: browsers aren't real consistent with their command-line arguments. I don't think this is a problem because currently all of them accept a URL on the command-line. That's all we need right now. Packagers can write shell scripts for the weird ones.

     
    Related Links

  • Debian Homepage
  • SPI Inc.
  • More about Debian
  • News by DanielS

    Most read story about Debian:
    Xpdf and PDF copy-control

    Last news about Debian:

    Printer Friendly Page  Send this Story to a Friend
  • "Does www-browser belong in /etc/alternatives?" | Login/Create Account | 17 comments
    Threshold


    The comments are owned by the poster. We aren't responsible for their content.

    Re: Does www-browser belong in /etc/alternatives? (Score: 4, Informative)
    by joeyh on Friday, November 30 @ 05:50:28 GMT
    (User Info) http://kitenet.net/~joey/

    There is already a better solution -- the BROWSER environment variable. man environ, and scroll down to BROWSER for details.

    This is not manadated by policy (yet), but support has been added to several packages. It beats out the alternatives system for this application because it allows a list of browsers to be specified, so you can run one in X and have a different one run if you're at the console. It deals with the varying command line issue. And most importantly, a BROWSER, like an EDITOR, is a personal thing best configured on a per-user basis.

    [ Reply ]


    Rantings from #debianplanet (Score: 2, Funny)
    by GehRehmee on Saturday, December 01 @ 18:55:27 GMT
    (User Info) http://rifetech.com/~gehn/bg/

    Maybe I'm totally insane here, but the following conversation I had on #debianplanet got me thinking a bit, maybe it will here too:

    <Geh`rehmee > personally, i like the idea of expanding debian's alternatives system to a) handle mime types directly, and b) allow per-user customization.

    <Geh`rehmee> afaik, anyone can define a mime type, but it doesn't mean anybody will pay attention to it. 🙂

    <LordBrain> hmm

    <LordBrain> what is debian's alternatives system?

    <Geh`rehmee> let's see...

    <Geh`rehmee> for example, the x-window-manager command.

    <Geh`rehmee> /usr/bin/x-window-manager is a symlink to /etc/alternatives/x-window-manager

    <Geh`rehmee> /etc/alternatives/* are managed by debian's 'update-alternatives' system.

    <LordBrain> hmmm

    <LordBrain> perhaps it would be better to have it be in ~/.alternatives/*

    <Geh`rehmee> 'update-alternatives -config x-window-manager' allows you to select which actual window manager binary the /etc/alternatives/x-window-manager symlink points to.

    <Geh`rehmee> well, the real issue would be replacing the alternative symlinks with some type of script, which could dynamically decide which potential option is correct.

    <Geh`rehmee> if [ -x ~/.alternatives/x-window-manager ]; then ~/.alternatives/x-window-manager; else /etc/alternatives/x-window-manager; fi

    <Geh`rehmee> that sort of a deal.

    <LordBrain> a deal?

    <Geh`rehmee> this is all my personal rantings, and i'm no debian maintainer, so i could be completely on crack. 🙂

    <LordBrain> well i'm not a maintainer either

    <LordBrain> yet ... 😛

    <LordBrain> hehe

    <Geh`rehmee> heh.

    <Geh`rehmee> gnome already has it's gnome-url-handler, which performs the same purpose, essentially, but only for web browsers.

    <Geh`rehmee> 'gnome-moz-remote' actually.

    <LordBrain> yeah, that doesnt seem like a real solution tho

    <Geh`rehmee> oh?

    <Geh`rehmee> which, the gnome-moz-remote one?

    <LordBrain> not if its only for web browsers, there's no reason for data centrism to stop there, and if we're gonna have it in other parts, it makes more sense to me if we do it in a uniform way throughout the system

    <Geh`rehmee> in my case, i'm irc'ing from a headless vnc box in another city, so i've got gnome-moz-remote set up to email the URL to an address that automatically forwards to my jabber account.

    <Geh`rehmee> oh, yeah. definately.

    <LordBrain> simplifies things, for users and developers

    <Geh`rehmee> you mind if i copy/paste this discussion as a comment on that debianplanet story? maybe it'll get somebody's brain turning.

    <LordBrain> and this is only inside gnome, are we gonna start neglecting the command line the way of windows?

    [ Reply ]


    Based on: PHP-Nuke

    All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2000 by Debian Planet

    You can syndicate our news using the file backend.php.