fix: copy bare config files to named directory (#375)

This commit is contained in:
aclist committed 2026-06-27 23:51:20 +09:00
1 parent cd1fd1b179
commit 61f90d6016
3 files changed
+74 -5

No files matched your search

+5 -4
View File
@@ -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