#1504: Running deluge daemon as a not logged in user via runas or as a service.
---------------------------+------------------------------------------------
 Reporter:  mindthemonkey  |       Owner:        
     Type:  bug            |      Status:  new   
 Priority:  minor          |   Milestone:  Future
Component:  windows        |     Version:  1.3.1 
 Keywords:                 |  
---------------------------+------------------------------------------------
 The %APPDATA% environment variable referenced in deluge/common.py 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\main.py", line 214, in start_daemon
 File "deluge\core\daemon.py", line 52, in __init__
 File "deluge\configmanager.py", line 130, in get_config_dir
 File "deluge\configmanager.py", line 93, in get_config_dir
 File "deluge\configmanager.py", line 51, in config_directory
 File "deluge\common.py", line 151, in get_default_config_dir
 File "ntpath.py", line 96, in join
 TypeError: object of type 'NoneType' has no len()


 The issues is detailed for another language here:
 
http://groups.google.com/group/microsoft.public.vc.language/browse_thread/thread/9ccb4cfcae91a197?fwc=1

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

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/1504>
Deluge <http://deluge-torrent.org/>
Deluge project

-- 
You received this message because you are subscribed to the Google Groups 
"Deluge Dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/deluge-dev?hl=en.

Reply via email to