fix: 修复 Chrome 用户数据目录权限问题 #800
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
问题描述
使用 cursor-free-vip 进行 Google 账号登录后,Chrome 浏览器打开时提示:"系统无法读取您的偏好设置。某些功能可能无法使用,并且对偏好设置所做的更改不会保存。"
原因分析
执行完登录后,文件夹 ~/Library/Application Support/Google/Chrome/ 权限发生了变化,需要重新对当前用户赋权否则无法访问个人偏好设置。
解决方案
_fix_chrome_permissions方法,用于修复 Chrome 用户数据目录的权限测试方法
预期结果
Chrome 浏览器可以正常访问个人偏好设置,不再出现权限错误提示。