Advertisement
corrosiontears

Links Magnéticos nos Navegadores Linux

Jun 12th, 2013
277
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.33 KB | None | 0 0
  1. Associar Links Magnéticos pelo Firefox/Iceweasel Google Chrome/Chromium à partir do Openbox/Gnome/Cinnamon:
  2.  
  3.     gconftool-2 -t string -s /desktop/gnome/url-handlers/magnet/command "/usr/bin/transmission %s"
  4.     gconftool-2 -s /desktop/gnome/url-handlers/magnet/needs_terminal false -t bool
  5.     gconftool-2 -t bool -s /desktop/gnome/url-handlers/magnet/enabled true
  6.  
  7. Depois /usr/bin/transmission-gtk (ou qt) no Firefox para Abrir os Links
  8.  
  9. Solução Alternativa:
  10.  
  11. xdg-mime default transmission-qt.desktop x-scheme-handler/magnet
  12.  
  13. http://crunchbanglinux.org/forums/topic/8545/solved-magnet-links-in-chrome/
  14.  
  15. Solução Mais simples (Válida para outros Clientes Torrent) :
  16.  
  17. about:config
  18.  
  19. Botão Direito → Novo → Boolean → Nome:
  20. network.protocol-handler.expose.magnet → Valor → false
  21.  
  22. Para o KTorrent:
  23.  
  24. Botão Direito → Novo → String → Nome: network.protocol-handler.app.magnet → Valor → ktorrent
  25.  
  26.  
  27. Goole Chrome / XFCE:
  28. http://forum.manjaro.org/index.php?topic=1236.0
  29.  
  30. Edite o /usr/bin/xdg-open
  31.  
  32. open_xfce()
  33. {
  34.        if (echo "$1" | grep -q '^magnet:'); then
  35.             transmission-gtk "$1"
  36.           else
  37.                 exo-open "$1"
  38.           fi
  39.  
  40.           if [ $? -eq 0 ]; then
  41.                 exit_success
  42.            else
  43.                 exit_failure_operation_failed
  44.         fi
  45. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement