|
发表于 2005-9-24 21:07:57
|
显示全部楼层
- #!/bin/sh
- export MOZILLA_FIVE_HOME="/path/to/your/firefox_installation"
- url="$1"
- if [ ! "$url" ]; then
- url="about :blank"
- fi
- if $MOZILLA_FIVE_HOME/mozilla-xremote-client -a firefox openURL\("$url",new-tab\); then
- exit 0
- fi
- $MOZILLA_FIVE_HOME/firefox "$url"
- exit 0
复制代码
将以上代码保存,命名可以随意,比如openlink.sh,放入$PATH中(不是必须的),赋予可执行属性,在上述程序首选项中选择浏览器的地方都选择这个脚本。thunderbird在gui中没有可选择浏览器的地方,那么就在thunderbird用户profile目录下的pref.js文件中加入
- user_pref("network.protocol-handler.app.http", "/path/to/openlink.sh");
复制代码 |
|