任意开启 Mozilla
如果您用的是在Mozilla.org 下载的tar ball, 每次已运行的mozilla window 都挡住所有新的mozilla window. 十分不方便. 现提供一小小的executable, 把以下save成 /usr/bin/mozilla 再 chmod 755 (假设你把mozilla tar ball 解压装在 /usr/local/mozilla 里头)
#!/bin/sh
# this file is /usr/bin/mozilla
# if mozilla already running, open URL in a new tab window
# else just launch mozilla as usual
if [ "$(find ~/.mozilla -type l -name lock)" != "" ]; then
/usr/local/mozilla/mozilla -remote "openURL($1,new-tab)"
else
/usr/local/mozilla/mozilla
fi
# end of file
发布人:highlander 来自: