Както знаете Firefox е цяла операционна система, затова трябва да регистрирате програмчето ви.
gconftool-2 -s /desktop/gnome/url-handlers/netbeans/command '/home/guda/netbeans.rb %s' --type String
gconftool-2 -s /desktop/gnome/url-handlers/netbeans/enabled --type Boolean true
Ето тук четете за регистрацията за протоколи
Теглете rails-footnotes и NetBeans за linux.
create the file ~/netbeans.rb and make it executable:
Ето и проклетият content:
Отворете
Ето и проклетият content:
#!/usr/bin/ruby
file = ARGV.first.split('file://').last.split('&').first
line = /\&line\=(\d+)/.match(ARGV.first)[1] rescue 0
`"/path/to/your/netbeans-dir/bin/netbeans" "#{file}:#{line}"`
`wmctrl -a "NetBeans IDE"`
install wmctrl
sudo aptitude install wmctrl
We’ll need this to give focus to the NetBeans window.
Ако не стане пробвайте следната мазня
Отворете
about:config in firefox and add: - string
network.protocol-handler.app.editorwith content~/.editor.rb - bool
network.protocol-handler.external.editorand set it totrue
Няма коментари:
Публикуване на коментар