- #TODO: Drop me
- if os.path.exists(desktop_file_path):
- with open(desktop_file_path) as file:
- filedata = file.read()
- filedata = filedata.replace(
- "Icon=" + args.old_waydroid_data, "Icon=" + args.waydroid_data)
- with open(desktop_file_path, 'w') as file:
- file.write(filedata)
- os.chmod(desktop_file_path, 0o755)
-