nextcloud / talk-desktop

💬💻 Nextcloud Talk Desktop Client Preview
https://nextcloud.com/talk
GNU Affero General Public License v3.0
163 stars 12 forks source link

Ask for camera and microphone access on macOS #50

Open ShGKme opened 1 year ago

ShGKme commented 1 year ago

Since macOS 10.14 Mojave it is required to ask media access on Mac.

What to do, if the user refuses?

https://www.electronjs.org/docs/latest/api/system-preferences#systempreferencesaskformediaaccessmediatype-macos

fabricemous commented 1 year ago

I did not explicitly refuse access I believe. Perhaps something I missed so how can I make Talk ask me access again. Or otherwise where can I change these in my system settings.

gymnae commented 1 year ago

Happened to me as well, the app did not request permission and I'm not able to use microphones or cameras

wolfspyre commented 1 year ago

yeah. seems like the cause is already identified and a PR exists to address from march https://github.com/nextcloud/talk-desktop/pull/80 What needs to happen to get that merged and a new build minted?

gymnae commented 1 year ago

macOS is not in focus until version 1 release, apparently

bentuna commented 5 months ago

I can confirm that under macOS 14 Sonoma the issue still exists: no asking for camera or microphone permission and therefore no usage for calls possible.

cyr06 commented 4 months ago

MacOS Sonoma + Talk Version 0.29.0 (https://github.com/nextcloud-releases/talk-desktop/releases/download/v0.29.0/Nextcloud.Talk-darwin-x64-0.29.0.zip) I wasn't ask to allow mic and camera so impossible to make a call.

ShGKme commented 4 months ago

I will try to check this issue again next week 👀

benjamindahl commented 2 months ago

hey people, I've managed to get it to work. Coming from another problem I realised that Talk-Desktop does not ask for camera and microphone permission. I used https://github.com/DocSystem/tccutil to grant them with the following command manually:

Download or clone the python-script to your computer. Then run sudo /usr/bin/python3 ./tccutil.py -p /Applications/Nextcloud\ Talk.app -e --microphone --camera

Bildschirmfoto 2024-07-08 um 08 13 45

Bildschirmfoto 2024-07-08 um 08 21 08
benjamindahl commented 2 months ago

Suggestion: title of the bug should be changed to just macOS, because it affects all recent macOS versions

crckrmn77 commented 2 months ago
hey people, I've managed to get it to work. Coming from another problem I realised that Talk-Desktop does not ask for camera and microphone permission. I used https://github.com/DocSystem/tccutil to grant them with the following command manually:

Download or clone the python-script to your computer. Then run `sudo /usr/bin/python3 ./tccutil.py -p /Applications/Nextcloud\ Talk.app -e --microphone --camera`

Can confirm this worked for me on M2 MBP running Sonoma 14.5.

wolfspyre commented 2 months ago

That's cool! Really. Neat find @benjamindahl THANK YOU FOR SHARING.

THAT BEING SAID, This is NOT A FIX but a (USEFUL) hacky workaround.

The fix is that the application must actually request the privileges it needs.... This is handled for talk by the browser, but as a standalone client, the permissions must be explicitly declared

(I believe the entitlement needs to be baked into the app cert too but I'm not a mac app dev ;) )