Opened 12 years ago

Closed 11 years ago

#1504 closed bug (Fixed)

Running deluge daemon as a not logged in user via runas or as a service.

Reported by: mindthemonkey Owned by: Cas
Priority: minor Milestone: 1.3.3
Component: Windows OS Version: 1.3.1
Keywords: Cc:


The %APPDATA% environment variable referenced in deluge/ on line 149 and line 151 is not available when running a process via the "runas" command or running deluged as a service using the "srvany.exe" windows resource kit tool to setup a process as a service.

The following error occurs:

[ERROR ] 21:59:59 init__:1080 object of type 'NoneType?' has no len() Traceback (most recent call last): File "deluge\", line 214, in start_daemon File "deluge\core\", line 52, in init File "deluge\", line 130, in get_config_dir File "deluge\", line 93, in get_config_dir File "deluge\", line 51, in config_directory File "deluge\", line 151, in get_default_config_dir File "", line 96, in join TypeError?: object of type 'NoneType?' has no len()

The issues is detailed for another language here:

And a suggestion to pull the same variable from the registry is detailed which can be achieved with the attached python snippet

Attachments (2) (232 bytes) - added by mindthemonkey 12 years ago. (15.6 KB) - added by mindthemonkey 11 years ago.

Download all attachments as: .zip

Change History (5)

Changed 12 years ago by mindthemonkey

comment:1 Changed 12 years ago by Cas

  • Milestone changed from Future to 1.3.2
  • Owner set to Cas
  • Status changed from new to accepted

I have put a test patch in the original forum topic:

comment:2 Changed 12 years ago by Cas

  • Milestone changed from 1.3.2 to 1.3.x

Changed 11 years ago by mindthemonkey


comment:3 Changed 11 years ago by Cas

  • Milestone changed from 1.3.x to 1.3.3
  • Resolution set to fixed
  • Status changed from accepted to closed

Fixed in 1.3-stable: 532973

Note: See TracTickets for help on using tickets.