#!/bin/sh
# author - David Patton
# seriously modified by - Carlos Urbieta Cabrera <cucnews at yahoo dot com>
# THIS SOFTWARE HAS THE GPL LICENSE, IF YOU USE THIS SOFTWARE, YOU ARE
# AGREEING TO ITS LICENSES TERMS, SO AT LEAST READ IT! 8D
# http://www.gnu.org/licenses/licenses.html#TOCGPL
#***

quiensoy=$(whoami)
if [[ `ps -U $quiensoy | grep phoenix` ]]
then
        #Mozilla is probably running
`/usr/lib/phoenix/phoenix -remote 'openURL('www.google.com', new-window)'`
                                          # 'new-tab' also exists, but it
                                          # will not bring the browser
                                          # ontop, so its not that fun
                                          # people may not realize that
                                          # there is a new tab on their 
                                          # browser 8) -Carlos
else
        #Mozilla isn't running
        `/usr/lib/phoenix/phoenix www.google.com &`
fi

#***
#Changelog: 
#
# 2003/01/24
# * Davids script used a simple ps -e without checking for users, so
#   his was monouser, this new version is multiuser, propper for 
#   the linux terminal server project (hey guys!) 8) -Carlos
#
# 2003/01/22
# Yes this script is big enough for a change log! 8) -Carlos
#***
#TODO
#
# Knock yourself out, send your changes back to me, you agreed to it
# remember? 8)
#
#***