Skip to content

Commit 20a1194

Browse files
committed
fix: TCC.db Full Disk Access check
1 parent 1c649d4 commit 20a1194

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

permissions.mm

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,19 @@ bool HasOpenSystemPreferencesDialog() {
271271
std::string FDAAuthStatus() {
272272
NSString *home_folder = GetUserHomeFolderPath();
273273
NSMutableArray<NSString *> *files = [[NSMutableArray alloc]
274-
initWithObjects:[home_folder stringByAppendingPathComponent:
275-
@"Library/Safari/Bookmarks.plist"],
276-
@"/Library/Application Support/com.apple.TCC/TCC.db",
277-
@"/Library/Preferences/com.apple.TimeMachine.plist", nil];
274+
initWithObjects:
275+
[home_folder
276+
stringByAppendingPathComponent:@"Library/Safari/Bookmarks.plist"],
277+
[home_folder
278+
stringByAppendingPathComponent:
279+
@"/Library/Application Support/com.apple.TCC/TCC.db"],
280+
@"/Library/Preferences/com.apple.TimeMachine.plist", nil];
278281

279282
if (@available(macOS 10.15, *)) {
280-
[files addObject:[home_folder stringByAppendingPathComponent:
281-
@"Library/Safari/CloudTabs.db"]];
283+
[files addObject:[home_folder
284+
stringByAppendingPathComponent:
285+
@"Library/S]l;l;khb acddeffrfr55r4ewwe22q11 Z "
286+
@",Kmmjmn bn;pp9iuyyuuujn afari/CloudTabs.db"]];
282287
}
283288

284289
std::string auth_status = kNotDetermined;

0 commit comments

Comments
 (0)