Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add default media usage strings to info.plist #16240

Closed
wants to merge 3 commits into from

Conversation

codebytere
Copy link
Member

@codebytere codebytere commented Jan 2, 2019

Description of Change

This PR adds default keys to Info.plist for NSMicrophoneUsageDescription and NSCameraUsageDescription. This will simplify usage of the media access apis added for MacOS Mojave.

/cc @nornagon @miniak

Checklist

  • PR description included and stakeholders cc'd
  • npm test passes
  • PR title follows semantic commit guidelines
  • PR release notes describe the change in a way relevant to app-developers

Release Notes

Notes: Added default NSMicrophoneUsageDescription and NSCameraUsageDescription keys to Info.plist.

@codebytere codebytere requested a review from a team January 2, 2019 22:19
atom/browser/resources/mac/Info.plist Outdated Show resolved Hide resolved
<key>NSCameraUsageDescription</key>
<string></string>
<string>This app needs access to the camera</string>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you share a screenshot of what the dialog looks like with this text?

@codebytere
Copy link
Member Author

@nornagon it'd look just like this:

img_5b6a2cfee4b79

@nornagon
Copy link
Member

nornagon commented Jan 2, 2019

Then where does the string you just added go?

@BinaryMuse
Copy link
Contributor

Given that the modal doesn't have the app name in the title bar, I'm concerned that the "This app" wording is ambiguous... but don't have a good thought on how to improve it. 🤔

@nornagon
Copy link
Member

nornagon commented Jan 3, 2019

The wording doesn't even seem to show up in the dialog, so i'm confused why this is needed at all :/ perhaps we can get some clarification on the original issue as to what the problem is?

@BinaryMuse
Copy link
Contributor

@nornagon I'm not 100% sure but I'm fairly certain the text shows up where the existing text is in the dialog @codebytere shared.

@nornagon
Copy link
Member

nornagon commented Jan 3, 2019

screen shot 2019-01-02 at 4 40 33 pm

@codebytere shared this screenshot with me, which she took with this patch applied.

@nornagon
Copy link
Member

nornagon commented Jan 3, 2019

though... wait a sec... why does that say /Users/miniak

@BinaryMuse
Copy link
Contributor

BinaryMuse commented Jan 3, 2019

Okay, it looks like this string shows up as additional context:

(which negates my concern about the "this" wording)

@nornagon
Copy link
Member

nornagon commented Jan 3, 2019

I don't 100% trust that the mac docs line up with what we're doing here. I don't have mojave, so can't test this right now, but someone really just needs to actually apply this patch and run it on their own machine to test. I thought @codebytere did that but now i'm confused by the miniak in the screenshot.

@codebytere
Copy link
Member Author

@nornagon i had chrome open in the background and took the screenshot while i was scrolled down to #15624 (comment).

@codebytere
Copy link
Member Author

Do we think we should try to merge this?

@codebytere codebytere closed this Mar 23, 2019
@codebytere codebytere deleted the default-media-strings branch August 6, 2019 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants