Skip to content

Commit

Permalink
Update verbiage
Browse files Browse the repository at this point in the history
  • Loading branch information
prgmitchell committed Nov 28, 2023
1 parent 5b7a26d commit f06d17f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions checks/macos.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,17 @@ def checkMacPermissions(lines):
found = re.search(r'Permission for (.+) denied', line)
if found:
permissionName = found.group(1).title()
deniedPermissions.append(permissionName)
permissionDescription = {
"Audio Device Access": "<b>Microphone</b>: OBS requires this permission if you want to capture your microphone.",
"Video Device Access": "<b>Camera</b>: This permission is needed in order to capture content from a webcam or capture card.",
"Accessibility": "<b>Accessibility</b>: For keyboard shortcuts (hotkeys) to work while other apps are focused this permission is needed.",
"Screen Capture": "<b>Screen Recording</b>: OBS requires this permission to be able to capture your screen."
}.get(permissionName)

if permissionDescription:
deniedPermissions.append(permissionDescription)

if deniedPermissions:
deniedPermissionsString = "<br><ul><li>" + "</li><li>".join(deniedPermissions) + "</li></ul>"
return [LEVEL_WARNING, "Permissions Not Granted (" + str(len(deniedPermissions)) + ")",
"""Access to the following permissions has not been granted:""" + deniedPermissionsString + "If you would like to grant permissions for the above, follow the instructions in the " + '<a href="https://obsproject.com/kb/macos-permissions-guide">macOS Permissions Guide</a>.']
"""The following permissions have not been granted:""" + deniedPermissionsString + "If you would like to grant permissions for the above, follow the instructions in the " + '<a href="https://obsproject.com/kb/macos-permissions-guide">macOS Permissions Guide</a>.']

0 comments on commit f06d17f

Please sign in to comment.