1
0
mirror of https://github.com/altlinux/gpupdate.git synced 2025-03-21 18:50:38 +03:00

Removing the old system settings cleanup

This commit is contained in:
Данила Скачедубов 2024-05-31 18:38:19 +04:00 committed by Valery Sinelnikov
parent 9e849e8fe3
commit fd3a32e8e1

View File

@ -126,8 +126,6 @@ def apply(all_kde_settings, locks_dict, username = None):
if username is None:
for file_name, sections in all_kde_settings.items():
file_path = f'/etc/xdg/{file_name}'
if os.path.exists(file_path):
os.remove(file_path)
with open(file_path, 'w') as file:
for section, keys in sections.items():
section = section.replace(')(', '][')
@ -275,4 +273,4 @@ def get_id_desktop(path_to_wallpaper):
else:
return None
except:
return None
return None