mirror of
https://github.com/aclist/dztui.git
synced 2026-11-21 17:09:30 +01:00
fix: copy bare config files to named directory (#375)
This commit is contained in:
1 parent
cd1fd1b179
commit
61f90d6016
3 files changed
+74
-5
No files matched your search
+5
-4
@@ -55,11 +55,12 @@ def get_xdg_paths() -> dict:
|
||||
|
||||
resolved_paths = {}
|
||||
for path in xdg_paths:
|
||||
rp = os.environ.get(path)
|
||||
if rp is not None and is_writeable(rp):
|
||||
resolved_paths[path] = Path(rp)
|
||||
real_path = os.environ.get(path)
|
||||
if real_path is not None and is_writeable(real_path):
|
||||
new_path = Path(real_path)
|
||||
else:
|
||||
resolved_paths[path] = xdg_paths[path] / APP_NAME_LOWER
|
||||
new_path = xdg_paths[path]
|
||||
resolved_paths[path] = new_path / APP_NAME_LOWER
|
||||
return resolved_paths
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user