Changing .torrent-folder

Specific support for Deluge on Microsoft Windows OS
Post Reply
Pappy
New User
New User
Posts: 5
Joined: Tue Jul 03, 2012 8:20 am

Changing .torrent-folder

Post by Pappy »

I'm coming from uTorrent but want to switch.
Deluge looks good.
Problem: The .torrent-files seem to land in the \AppData\Roaming\Deluge\State folder.

I definately do not want them there.

How do I change folder?
I got the data-files to the folder I want, but the .torrents seem stuck in this AppData-folder.
If it's not possible to change this folder I will have to go back to uTorrent :(

Other question: Can Deluge be portable?
I don't want anything in any directory on system drive, I want all in my installed directory on other drive.

Help would be much appriciated.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Changing .torrent-folder

Post by Cas »

You can use the 'copy of .torrent' option in preferences.
Pappy
New User
New User
Posts: 5
Joined: Tue Jul 03, 2012 8:20 am

Re: Changing .torrent-folder

Post by Pappy »

I did. But nothing happens.
The .torrents are still being downloaded in the AppData-folder.

I want no downloaded files on the systemdrive, of course.
That's just stupid (I think).
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Changing .torrent-folder

Post by Cas »

You can change the config dir with the command line option `-c <dir>` (edit the Deluge shortcut) and with the latest release you could put the Deluge application folder anywhere and it will still run fine with the only issue being file associations.
Pappy
New User
New User
Posts: 5
Joined: Tue Jul 03, 2012 8:20 am

Re: Changing .torrent-folder

Post by Pappy »

That's exactly what I'm looking for... BUT... it doesn't work (I maybe did something wrong?).

I put the startmenu shortcut like this:
deluge.exe -c e:\Torrent.torrent

Restarted and it makes all the config in the right spot. Sweet!

Tried getting a torrent two ways:
With open Deluge:
I press a torrentlink and nothing happens. It looks like it downloads, blinks and nothing more. Deluge is active and nothing is opening in deluge.

With deluge not open:
I press a torrentlink and nothing happens. It looks like it downloads, blinks and nothing more. Deluge is active in the backhround but I cannot open it. If I press several torrentlinks, I get several Deluge.exe active in the background, but cannot use any.

So I though, hey I need to change the download in Firefox to the shortcut instead of the program itself.
Made a new shortcut with Deluge -c e:\Torrent.torrent.
Stopped all instances of Deluge.
Press a torrentlink - directed it to my shortcut - YES - it opens! And the torrent is there downloading!
So I'm checking where the .torrent-file landed.

In the AppData-folder on c:

WTF?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Changing .torrent-folder

Post by Cas »

Setting the shortcut in firefox will not help as firefox will simply execute deluge.exe without the config parameter. Also firefox on windows only allow exe files so directly using batch script won't work either however using a 'bat to exe' bypasses this issue.

Create a batch file containing the following:

Code: Select all

@echo off
"C:\Program Files (x86)\Deluge\deluge.exe" -c "C:\config" %*
Then use Bat to Exe and choose 'invisible application' option to create an exe for use with firefox, from the above script.
Pappy
New User
New User
Posts: 5
Joined: Tue Jul 03, 2012 8:20 am

Re: Changing .torrent-folder

Post by Pappy »

Ok, I did that.
It no longer produces stuff in \AppData\Roaming\Deluge

instead the .torrent is produced in

\AppData\Local\Temp

and not my path specified in the bat/exe.
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: Changing .torrent-folder

Post by Cas »

'AppData\Local\Temp' is default Firefox location for temporary files, nothing to do with Deluge.

When you add the torrent it would be copied into '<config dir>\state'
Pappy
New User
New User
Posts: 5
Joined: Tue Jul 03, 2012 8:20 am

Re: Changing .torrent-folder

Post by Pappy »

Ah, I restarted everything and it now works.
Also changed the system temp-variables since Firefox doesn't seem to be able to do that specifically.

Thanks buddy.
Here's for your hard work with a troublesome user like me.
Post Reply