Opened 16 years ago

Closed 16 years ago

Last modified 4 months ago

#427 closed bug (Fixed)

Specifiing a new config dir leads to permission denied error

Reported by: peterke@gmail.com Owned by: markybob
Priority: critical Milestone:
Component: Core Version: 0.9.05 (1.0.0_RC5)
Keywords: Cc:

Description

When starting the deluge daemon, there is an option to specify where the config directory is, but besides putting the log file there, the program ignores the option and tries to create it's own config dir in the users home directory.

This way it is impossible to start it under SUSE during boot time, as then no HOME environmental variable is set, thus Deluge tries to create the .config folder in the file system root. (Even though it was specified to use a different folder).

With just a quick look through, the problem seems to be in the configmanager.py file in the class constructor: the self.config_directory is always initialized to the *default* config dir, even though it was overridden on startup. In the daemon.py file the config dir variable is later set to the correct *new* config folder, but the execution never reaches this line (the overriding of the *default* config dir), as when it loads the *default* it already dies with a permission denied error.

Change History (2)

comment:1 by andar, 16 years ago

Component: 0.5.xcore
Milestone: 1.0.0
Resolution: fixed
Status: newclosed

This should be fixed in [3714]

comment:2 by (none), 16 years ago

Milestone: 1.0.0

Milestone 1.0.0 deleted

Note: See TracTickets for help on using tickets.