another safe_link

This commit is contained in:
Kovid Goyal 2022-07-19 10:48:25 +05:30
parent 323a405b31
commit ce05b7ecc1
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -96,7 +96,7 @@ def compile_icon_dir_as_themes(
if ext.lower() not in ('.png',): if ext.lower() not in ('.png',):
if image_name == 'metadata.json': if image_name == 'metadata.json':
dest = theme_dir, dest_name dest = theme_dir, dest_name
os.link(image_path, os.path.join(tdir, *dest)) safe_link(image_path, os.path.join(tdir, *dest))
file('/'.join(dest)) file('/'.join(dest))
return return
if base.endswith('-for-dark-theme'): if base.endswith('-for-dark-theme'):