Repository navigation
Conversation
…es that stop macOS killing mediad when it opens a camera
4 of 11 tasks
Collaborator
|
Shipped in the 0.2.94 release via #1046. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What changed and why
Opening a camera on macOS ended mediad, because nothing said why it opens one (#1019). The fix is on
mainsince #1028:packaging/Info.plist,crates/mediad/Info.plistandpackaging/entitlements.plistcarry the camera entries. Nothing held them there: removing one broke no test.mediadnow has tests that go red when the camera reason is missing, empty or commented out in either plist, or when the entitlement is not<true/>. The doc comment on the embedded plist says it carries the camera's reason too.Type
Platforms
Proof
No scenario: only tests and one doc sentence change, nothing changes for the user. The behaviour is the fix in #1028. Run on this branch on Windows before this pull request:
cargo build --workspace --all-targets --features tinyclient/gui, thencargo nextest run --workspace --features tinyclient/gui(3681 passed, 28 skipped, the three new tests among them), thencargo test --workspace --doc --features tinyclient/gui.Not shown: the system dialog on a Mac instead of the crash. That needs a Mac with a camera and was not run.
Compatibility
No protocol change.
Risk and rollback
Nothing changes for the user. Revert the commit.
Release note
None.
Part of #1019.