Fix: Sandbox in non-english prefixes

This commit is contained in:
Marius Zachmann 2020-04-01 00:11:50 +02:00 committed by Mathieu Comandon
parent 1db904644f
commit d38ce1b36b

View file

@ -157,7 +157,7 @@ class WinePrefixManager:
# Security: Remove other symlinks.
for item in os.listdir(user_dir):
path = os.path.join(user_dir, item)
if item not in DEFAULT_DESKTOP_FOLDERS and os.path.islink(path):
if item not in desktop_folders and os.path.islink(path):
os.unlink(path)
os.makedirs(path)