forked from openlp/openlp
If XDG is available, log files belong in the real cache dir
This commit is contained in:
parent
738e8e0283
commit
35fd553024
@ -157,7 +157,7 @@ def _get_os_dir_path(dir_type):
|
|||||||
return directory
|
return directory
|
||||||
return Path('/usr', 'share', 'openlp')
|
return Path('/usr', 'share', 'openlp')
|
||||||
if XDG_BASE_AVAILABLE:
|
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')
|
return Path(BaseDirectory.xdg_data_home, 'openlp')
|
||||||
elif dir_type == AppLocation.CacheDir:
|
elif dir_type == AppLocation.CacheDir:
|
||||||
return Path(BaseDirectory.xdg_cache_home, 'openlp')
|
return Path(BaseDirectory.xdg_cache_home, 'openlp')
|
||||||
|
Loading…
Reference in New Issue
Block a user