Monday, May 6, 2024
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 4611  / 2 Years ago, sun, february 27, 2022, 6:39:28

I just installed µTorrent Server for Ubuntu 12.04 (3.3 build 30470) using this step by step guide How to install utorrent step by step? and it works just fine.



Now I want to start a torrent just by double-clicking the .torrent file.



To do this I need to create an association with utserver. The problem is that utserver doesn't have a .desktop file that I can edit in order to make the association.



Any ideas on how to do this?


More From » file-association

 Answers
6

My little ponyhack




  1. Create directory for torrents:



    mkdir ~/torrents

  2. Add this as autoload directory:



    enter image description here


  3. Create script torrent-utserver.sh and place it in /usr/local/bin:





    #!/bin/bash
    # little helper script
    mv "$@" ~/torrents


    Change permissions to execute



    sudo chmod +x /usr/local/bin/torrent-utserver.sh

  4. Associate *.torrent files to this script



    enter image description here




Voila! It should work.


[#25629] Sunday, February 27, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
nuehan

Total Points: 253
Total Questions: 109
Total Answers: 120

Location: Singapore
Member since Sat, Jul 25, 2020
4 Years ago
;