If XDG is available, log files belong in the real cache dir

This commit is contained in:
Raoul Snyman 2018-01-06 21:45:13 -07:00
parent 738e8e0283
commit 35fd553024
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ def _get_os_dir_path(dir_type):
return directory
return Path('/usr', 'share', 'openlp')
if XDG_BASE_AVAILABLE:
if dir_type == AppLocation.DataDir or dir_type == AppLocation.CacheDir:
if dir_type == AppLocation.DataDir:
return Path(BaseDirectory.xdg_data_home, 'openlp')
elif dir_type == AppLocation.CacheDir:
return Path(BaseDirectory.xdg_cache_home, 'openlp')