Re-fixed the data directory on Linux with XDG installed.

This commit is contained in:
Raoul Snyman 2011-02-13 22:03:55 +02:00
parent 1384688708
commit 572cbd95f0

View File

@ -179,8 +179,7 @@ def _get_os_dir_path(dir_type):
if dir_type == AppLocation.ConfigDir:
return os.path.join(BaseDirectory.xdg_config_home, u'openlp')
elif dir_type == AppLocation.DataDir:
return os.path.join(BaseDirectory.xdg_data_home, u'openlp',
u'data')
return os.path.join(BaseDirectory.xdg_data_home, u'openlp')
elif dir_type == AppLocation.CacheDir:
return os.path.join(BaseDirectory.xdg_cache_home, u'openlp')
if dir_type == AppLocation.DataDir: