Str*_*rae 5 kde debian firefox iceweasel protocols
我最近从 Ubuntu 10.04 gnome 切换到 Debian wheezy Kde。
一切正常,除了 Iceweasel/firefox 自定义协议!
我在我的中添加了 komodo.protocol ~/.kde/share/services
:
[Protocol]
exec=python /path/to/my/script.py "%u"
protocol=komodo
input=none
output=none
helper=true
listing=
reading=false
writing=false
makedir=false
deleting=false
Run Code Online (Sandbox Code Playgroud)
这适用于 chrom(e|ium),但不适用于 Firefox。
我读过关于 firefox 应该使用 gnome 配置甚至在 Kde 下,所以我试过:
gconftool-2 -s /desktop/gnome/url-handlers/komodo/enabled --type Boolean true
gconftool-2 -s /desktop/gnome/url-handlers/komodo/command 'python /path/to/my/script.py %s' --type String
Run Code Online (Sandbox Code Playgroud)
当我在 ubuntu 上时,它曾经可以工作,但在 kde 上却没有。
任何的想法?
编辑
示例链接: komodo:/var/www/app/0/Modules/Controller/Node/Controller_Node.class.php:1202
如果我komodo /var/www/app/0/Modules/Controller/Node/Controller_Node.class.php:1202
从终端运行命令,它可以正常工作;我的 python 脚本只检查了几件事,然后运行这个命令 - 但是使用 firefox/iceweasel 它永远不会被触发。
小智 0
您可以尝试通过about:config编辑 Firefox 配置:
归档时间: |
|
查看次数: |
1957 次 |
最近记录: |