Ubuntu下添加Flashget支持

转载于http://www.newbegin.cn/
从 Flashget官方网站上下载 Deb安装包,用 dpkg命令安装,然后进行设置。
先用如下命令注册:
gconftool-2 -s /desktop/gnome/url-handlers/flashget/command '/usr/bin/flashget %s' --type String 
gconftool-2 -s /desktop/gnome/url-handlers/flashget/enabled --type Boolean true

然后打开FireFox,地址栏输入 about:config
新建一个真假(Boolean)值

network.protocol-handler.external.flashget

值为true

再新建一个字串(String)值

network.protocol-handler.app.flashget

值为/usr/bin/flashget

需要修正一个启动时的BUG,打开一个终端,输入:

sudo echo -e '#''!'"/bin/sh""\n""/usr/share/flashget/flashget "'$'"1" >/usr/bin/flashget

在 Firefox中安装 Flashgot插件,然后设置 Flashgot,点新增,名称可以输入 Flashget,路径里写

/usr/bin/flashget

在参数模板中填写

[URL] [ERFERER] 

注意:在[URL] [ERFERER]之间有一个空格。

然后在 Firefox中就可以用右键-使用 FlashGot 下载所选链接。

作者: yuzhou133   发布时间: 2010-10-22