#!/bin/sh

# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# $Header: /var/cvsroot/gentoo-x86/net-www/phoenix-bin/files/phoenix,v 1.5 2003/03/05 13:12:05 phoenix Exp $

# This is the Gentoo Phoenix startup script
# Additions, suggestions?
# contact phoen][x <phoenix@gentoo.org>

export MOZILLA_FIVE_HOME="/usr/lib/phoenix"
PHOENIX_PATH="/usr/lib/phoenix"

if [ -z "`/bin/ps x | /bin/grep \"[0-9] ${PHOENIX_PATH}/phoenix-bin\"`" ]; then
    # No phoenix running
    ${PHOENIX_PATH}/phoenix $@
else
    # phoenix running - open a new window
    ${PHOENIX_PATH}/phoenix -remote "openURL($@ ,new-window)"
fi
