forked from openlp/openlp
Fix the other data dirs
This commit is contained in:
parent
dd62045678
commit
98a28d8580
@ -179,9 +179,12 @@ 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')
|
||||
return os.path.join(BaseDirectory.xdg_data_home, u'openlp',
|
||||
u'data')
|
||||
elif dir_type == AppLocation.CacheDir:
|
||||
return os.path.join(BaseDirectory.xdg_cache_home, u'openlp')
|
||||
if dir_type == AppLocation.DataDir:
|
||||
return os.path.join(os.getenv(u'HOME'), u'openlp', u'data')
|
||||
return os.path.join(os.getenv(u'HOME'), u'.openlp')
|
||||
|
||||
def _get_frozen_path(frozen_option, non_frozen_option):
|
||||
|
Loading…
Reference in New Issue
Block a user