forked from openlp/openlp
Re-fixed the data directory on Linux with XDG installed.
This commit is contained in:
parent
1384688708
commit
572cbd95f0
@ -179,8 +179,7 @@ def _get_os_dir_path(dir_type):
|
|||||||
if dir_type == AppLocation.ConfigDir:
|
if dir_type == AppLocation.ConfigDir:
|
||||||
return os.path.join(BaseDirectory.xdg_config_home, u'openlp')
|
return os.path.join(BaseDirectory.xdg_config_home, u'openlp')
|
||||||
elif dir_type == AppLocation.DataDir:
|
elif dir_type == AppLocation.DataDir:
|
||||||
return os.path.join(BaseDirectory.xdg_data_home, u'openlp',
|
return os.path.join(BaseDirectory.xdg_data_home, u'openlp')
|
||||||
u'data')
|
|
||||||
elif dir_type == AppLocation.CacheDir:
|
elif dir_type == AppLocation.CacheDir:
|
||||||
return os.path.join(BaseDirectory.xdg_cache_home, u'openlp')
|
return os.path.join(BaseDirectory.xdg_cache_home, u'openlp')
|
||||||
if dir_type == AppLocation.DataDir:
|
if dir_type == AppLocation.DataDir:
|
||||||
|
Loading…
Reference in New Issue
Block a user