#1884: OSError Permission Denied for /opt/local/etc/xdg/deluge on OSX 10.6
--------------------+-------------------------------------------------------
 Reporter:  elmiko  |       Owner:                        
     Type:  bug     |      Status:  new                   
 Priority:  major   |   Milestone:  Future                
Component:  gtkui   |     Version:  other (please specify)
 Keywords:  OSX     |  
--------------------+-------------------------------------------------------
 I have built deluge from the git trunk using the default python for OSX
 (Python 2.6.6 (r266:84292, May 17 2011, 10:52:47)) and after an
 installation with --prefix=$HOME I am getting the following exception when
 running '$ deluge-gtk'

 Traceback (most recent call last):
   File "/Users/mike/bin/deluge-gtk", line 9, in <module>
     load_entry_point('deluge==1.3.900-dev', 'gui_scripts', 'deluge-gtk')()
   File "/Users/mike/lib/python2.6/site-packages/deluge-1.3.900_dev-
 py2.6.egg/deluge/ui/gtkui/gtkui.py", line 89, in start
     Gtk().start()
   File "/Users/mike/lib/python2.6/site-packages/deluge-1.3.900_dev-
 py2.6.egg/deluge/ui/gtkui/gtkui.py", line 86, in start
     GtkUI(self.args)
   File "/Users/mike/lib/python2.6/site-packages/deluge-1.3.900_dev-
 py2.6.egg/deluge/ui/gtkui/gtkui.py", line 181, in __init__
     self.config = deluge.configmanager.ConfigManager("gtkui.conf",
 DEFAULT_PREFS)
   File "/Users/mike/lib/python2.6/site-packages/deluge-1.3.900_dev-
 py2.6.egg/deluge/configmanager.py", line 125, in ConfigManager
     return _configmanager.get_config(config, defaults)
   File "/Users/mike/lib/python2.6/site-packages/deluge-1.3.900_dev-
 py2.6.egg/deluge/configmanager.py", line 117, in get_config
     self.config_files[config_file] = Config(config_file, defaults,
 self.config_directory)
   File "/Users/mike/lib/python2.6/site-packages/deluge-1.3.900_dev-
 py2.6.egg/deluge/configmanager.py", line 54, in config_directory
     self.__config_directory = deluge.common.get_default_config_dir()
   File "/Users/mike/lib/python2.6/site-packages/deluge-1.3.900_dev-
 py2.6.egg/deluge/common.py", line 143, in get_default_config_dir
     return xdg.BaseDirectory.save_config_path("deluge")
   File
 "/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6
 /site-packages/xdg/BaseDirectory.py", line 59, in save_config_path
     os.makedirs(path, 0700)
   File
 
"/opt/local/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/os.py",
 line 157, in makedirs
     mkdir(name, mode)
 OSError: [Errno 13] Permission denied: '/opt/local/etc/xdg/deluge'

 I think the proper behavior is for the OSX version of deluge to operate as
 the linux version and look to the user's home directory as the first place
 for saving config information.

-- 
Ticket URL: <http://dev.deluge-torrent.org/ticket/1884>
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