Skip to content

mediad's tests keep the camera reason in both Info.plists and the entitlements - #1036

Closed
unRekable wants to merge 1 commit into
mainfrom
fix/camera-plist-entitlement-test
Closed

unRekable wants to merge 1 commit into
mainfrom
fix/camera-plist-entitlement-test

Conversation

@unRekable

Copy link
Copy Markdown
Collaborator

What changed and why

Opening a camera on macOS ended mediad, because nothing said why it opens one (#1019). The fix is on main since #1028: packaging/Info.plist, crates/mediad/Info.plist and packaging/entitlements.plist carry the camera entries. Nothing held them there: removing one broke no test. mediad now 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

  • feature
  • fix
  • perf
  • refactor
  • chore
  • docs

Platforms

  • windows
  • macos
  • linux
  • android
  • ios

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, then cargo nextest run --workspace --features tinyclient/gui (3681 passed, 28 skipped, the three new tests among them), then cargo 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.

…es that stop macOS killing mediad when it opens a camera
@itz4blitz

Copy link
Copy Markdown
Collaborator

Shipped in the 0.2.94 release via #1046.

@itz4blitz itz4blitz closed this Dec 5, 2026
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.

2 participants