1. Este site usa cookies. Ao continuar a usar este site está a concordar com o nosso uso de cookies. Saber Mais.

Pause torrents while I’m using the computer

Discussão em 'Dúvidas e Suporte—Internet, Redes, Segurança' iniciada por Inoculado, 19 de Janeiro de 2009. (Respostas: 0; Visualizações: 563)

  1. Inoculado

    Inoculado Power Member

    Achei por bem meter esta dica aqui ,em x de outro post para assim poder partilhar com todos os interessados.

    I use the Transmission BitTorrent client, and it’s pretty cool. However, it’s irritating when it eats my bandwidth while I’m trying to do stuff. So, one obvious hack would be to disable it when the screensaver is off (i.e., I’m using the computer) and enable it only when the screensaver is on (i.e., I’m in bed). Fortunately, Transmission has an API (which you have to enable by turning on the web interface in Preferences) and you can watch the Gnome screensaver for changes. So, a quick Python script later, and throw that Python script and Transmission itself into your session Startup Programs to make them run whenever you log in, and Bob’s your uncle. the script: #!/usr/bin/env python
    import dbus, urllib
    from dbus.mainloop.glib import DBusGMainLoop

    Fonte

    se quiserem podem colocar a traduçao por baixo .
     

Partilhar esta Página