|
发表于 2004-4-1 23:03:58
|
显示全部楼层
安装没有问题, 是mozilla 避免不同实例同时修改配置或缓存加的锁.
到网上找一个script. 在判断系统已有mozilla 运行时, 通知其打开一个新窗口.
#!/bin/sh
# MSS 2.3 - Mozilla Startup Script - Wrapper for Mozilla.
# License - Freeware
# This is a severe hack of the Netscape Starter Script
# I basically just changed things to it would work for Mozilla
# rather than Netscape. And I updated a few things that seemed
# like they would be better this way.
#
# Thanks to Smylers for suggesting a better way to open blank
# Mozilla windows.
#
# Thanks to Dimi S. for correcting all the "> $ECHO" lines, and
# for suggesting putting variables inside double quotes in if
# statements (keeps the script from breaking on files/directories
# with spaces or otherwise abnormal characters).
#
# Thanks to Diab J. for a PS command that should work for Solaris
# 2.8 and the like.
#
# Thanks to Saeed for getting "-mail" to work when mozilla is
# already running (with a -remote command). And also for
# suggesting the option to have new tabs opened, rather than
# new windows.
#
# Thanks to Michel Van den B. for suggesting the use of the
# ping() remote command for detecting of Mozilla is already running.
#
# Thanks to Thilo E. for noting that netscape -remote "ping()"
# did not work correctly with Netscape 7.02, and for submitting
# a nice workaround for the problem.
#
# Produced by: Mark Doliner, 2001-2003.
# Email: Software at kingant dot net
# Webpage: http://kingant.net/?p=mss
# --- ORIGNIAL COMMENTS - FOR MOZILLA QUESTIONS, SEE ABOVE ---#
# Author: Eon. 1998/1999. Feel free to use this script.
# Email: eon at telekabel.nl
# Go to my homepage (http://eon.za.net/linux/nss/) for more information,
# a changelog, and installation instructions.
# Thanks go to all those people who gave me suggestions, ideas, fixes, etc.!
# --- ORIGNIAL COMMENTS - FOR MOZILLA QUESTIONS, SEE ABOVE ---#
# ****************************************************************************
# This is where you can configure the script:
# ****************************************************************************
# Note that you can't have a mozilla executable that is named auto, nor have
# it executed from a subdirectory (of the current working directory)
# called auto. This will fail... But hey! Who calls it's Mozilla executable
# 'auto' anyway? ;)
# The settings below should be ok for most users... Default is 'auto'setup.
# This is the directory where Mozilla is installed.
# If you would like the script to autodetect it for you, set to auto.
# This feature will NOT overide an already set MOZILLA_FIVE_HOME.
#MOZILLA_INSTALL=auto
MOZILLA_INSTALL=/usr/local/mozilla/
# This is the Mozilla executable. Normally it is called mozilla, but some
# systems can also have it named Mozilla, or maybe even something else.
# Normally set this to auto to let the script determine the executable's name.
#MOZILLA_EX=auto
MOZILLA_EX=mozilla
# Choose to open URLs/blank windows in either a new tab or a new window.
# Just uncomment whichever one you want to use.
OPEN_URLS_IN=new-window
#OPEN_URLS_IN=new-tab
# ****************************************************************************
# No need to go below this line if you don't know what you are doing ;)
# ****************************************************************************
# The script itself:
# Normally text is only echo'ed if something goes wrong.
# Switch the output below to turn on debugging info.
# Note: You can also specify a file name to log to.
ECHO=/dev/null
#ECHO=/dev/tty
#ECHO=/home/username/MSS.log
echo "--- MSS 2.3 ---" > $ECHO |
|