Open houdq opened 3 months ago
To add screen recording permission for WeChat on macOS, you can use the sqlite3
command to modify the TCC (Transparency, Consent, and Control) database. Here's how to grant screen recording permission to WeChat:
sudo
):sudo /usr/bin/sqlite3 /Library/Application\ Support/com.apple.TCC/TCC.db "INSERT or REPLACE INTO access VALUES('kTCCServiceScreenCapture','com.tencent.xinWeChat',0,1,1,NULL,NULL,NULL,'UNUSED',NULL,0, strftime('%s','now'));"
Explanation of the SQL command:
INSERT or REPLACE INTO access
: This part inserts a new record or replaces an existing one in the access
table.'kTCCServiceScreenCapture'
: This specifies the service for screen recording.'com.tencent.xinWeChat'
: This is the identifier for the WeChat application.After running this command, you may need to restart your Mac or log out and log back in for the changes to take effect.
Note: Modifying the TCC database directly can have unintended consequences, and it's generally recommended to use the system preferences UI to manage permissions when possible.
最近系统降级,装了微信后发现截图要权限。 而且macos10.15 后没有+,怎么搞? 程序员眼里没有不可能, Google 了一番可以自己 tccutil 搞一波。