RE: [flalug] Firefox Integration

From: Darrin Jones (darrin@ravenrock.net)
Date: Fri Jun 11 2004 - 23:48:59 EDT


Last thing in pkg_postinst() is update_mozilla_launcher_symlinks.

================================================================

# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/eclass/mozilla-launcher.eclass,v 1.1
2004/05/28 02:32:16 agriffis Exp $

ECLASS=mozilla-launcher
INHERITED="$INHERITED $ECLASS"

update_mozilla_launcher_symlinks() {
        local f browsers="mozilla firefox thunderbird"
        cd ${ROOT}/usr/bin

        # Remove launcher symlinks that no longer apply

        for f in ${browsers}; do
                if [[ -L ${f} && ! -f ${f} ]]; then
                        einfo "Removing dangling ${f} launcher"
                        rm -f ${f}
                fi
        done

        # Create symlinks
        #
        # - If there's a -bin symlink in /usr/bin, and no corresponding
        # non-bin symlink, then create one.
        #
        # - Can't do this in src_install otherwise it overwrites the one
        # for the non-bin package.
        #
        # - Link to the -bin symlink so it's easier to detect when to
        # remove the symlink.

        for f in ${browsers}; do
                if [[ -L ${f}-bin && ! -e ${f} ]]; then
                        einfo "Adding link from ${f}-bin to ${f}"
                        ln -s ${f}-bin ${f}
                fi
        done
}

-----Original Message-----
From: flalug@nks.net [mailto:flalug@nks.net]On Behalf Of Larry Brown
Sent: Friday, June 11, 2004 20:45
To: flalug
Subject: Re: [flalug] Firefox Integration

Guess not, I'll keep looking. Thanks Mike...

Larry

On Fri, 2004-06-11 at 19:15, Mike Fisher wrote:

> I think Gentoo installs a script with firefox that does what you're
> after. Unfortunately, I don't have access to a Gentoo box at the
> moment. Anyone got it handy?
>
> Mike
>
>





This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:41:19 EDT