1
0
Files
electrum/electrum
SomberNight 612d82e8d4 qt gui: qrreader: macos: add runtime requesting of camera permission
- we were already
  - statically declaring "NSCameraUsageDescription" in the Info.plist
    - this used to be enough in the past
  - codesigning with an entitlements.plist that declares "com.apple.security.device.camera"
    - I believe this is required for notarization to pass for an app that declares "NSCameraUsageDescription".
- previously this was enough to access the camera IIRC
  - in any case, if the user goes into "System Preferences">"Security & Privacy", they can manually modify permissions there
- now with this commit, we on-demand trigger at runtime the OS permission prompt
  - making it much easier for users to actually use the camera
  - note: if you run via the Terminal, e.g. `$ $HOME/Desktop/Electrum.app/Contents/MacOS/run_electrum`,
    then it will be the Terminal app that requires the camera permission. If you run by double-clicking Electrum.app,
    then Electrum.app will be the "app" that requires the camera permission.
  - `$ tccutil reset Camera` can be used to clear permissions for all apps (back to the Qt::PermissionStatus::Undetermined state)

ref https://doc.qt.io/qt-6.5/qcoreapplication.html#requestPermission-1
2025-06-14 17:06:15 +00:00
..
2024-09-18 15:48:38 +00:00
2025-06-12 21:02:58 +02:00
2022-07-07 18:29:01 +02:00
2022-10-20 18:43:54 +00:00
2024-05-30 13:08:13 +00:00
2025-05-26 15:31:08 +00:00
2025-05-28 10:42:59 +02:00
2025-02-19 14:29:02 +01:00
2025-04-02 16:21:59 +00:00
2025-06-06 12:35:41 +02:00
2025-04-23 16:09:31 +02:00
2024-11-29 17:09:29 +08:00
2022-10-31 16:13:22 +00:00
2023-04-24 12:58:26 +00:00
2022-10-31 16:13:22 +00:00
2024-04-24 14:14:31 +00:00
2024-05-20 16:57:11 +02:00
2023-12-04 14:15:39 +08:00
2025-04-23 16:09:31 +02:00
2025-06-13 16:50:58 +00:00
2025-05-28 10:46:00 +02:00
2025-04-23 16:09:31 +02:00