-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Issue with QR code in the desktop app #4756
Comments
Weird. Sadly no workaround for this type of issue. This is definitely an overly-restrictive config somewhere in the desktop security that disallows it. Will see how and why it does it. Earliest release with a solution I can promise is next week Monday as part of the next release cycle for the desktop client - which is not great, hence just setting expectations up-front. |
Thanks a lot for looking at it ! |
No crashes as of 0.83.1... but the Electron app cannot get the camera permissions, at least not for me on Mac OS. So still broken in my case. More work required - https://www.electronjs.org/docs/api/system-preferences#systempreferencesaskformediaaccessmediatype-macos |
I'm leaving this bit of info here: I can get the camera scan to work if I route app launch through a shell...e.g. run Usually this happens when the host app isn't properly asking macOS for camera permission, which is a common problem. Apple has extensive documentation on how to properly request auth for media capture, if it's of any use when using Electron. |
Here are my quick findings:
There is a similar issue in there:
My conclusion: |
When I debug the electron app with https://github.com/bytedance/debugtron then it works as in the browser (macOS prompts me if I want to allow Debugron access my video camera, I agree and it works then). |
Have we tried this - https://www.electronjs.org/docs/api/system-preferences#systempreferencesaskformediaaccessmediatype-macos to get the same effect? (Not sure how that translates to other environments...) |
ah, I got your point now @jacogr: attempting to ask for permissions upfront so then the QR reading library won't hit any obstacle. |
No idea, just spitballing. But basically since it really doesn't seem to be a file issue (you got it to work), it is permissions only. Either way, we don't ask for it, so really should... |
Good news! Mere addition of |
Closed in #5569 - will be in Monday's release. |
I doesn't work in 93.1 either. Looking into it now. I suspect macOS detects its origin as github.com download and rejects the app asking for permission. |
Comparing the contents of Info.plist files (locally built which works and release download which does not) gives no diff except:
which is as expected and does not explain the behaviour difference |
Also: the downloaded release DMG has the following attributes:
When I remove all, it still does not help - the released app does not ask to use the camera permission whereas the locally built release package does. |
I'm running out of ideas. When I debug the app in Debugtron, it works as it is Debugstron who asks for camera permission. |
Believe we need this as well - So if we add that, I guess let's add a |
I could bet all my dev-network tokens it won't help, but let's try it out :D |
The above keep on popping up in comments that is linked from electron on the same "Mac doesn't ask for permission" issues... Really clueless, since locally should be the same as CI. Which makes things a huge PITA. |
Verified as working on my machine in 0.97.1 (so #5604 seems to have been the fix indeed) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue if you think you have a related problem or query. |
Hi !
Whereas I have no issues when I try to "add via QR code" in the in-browser app, I can't get it to work in the desktop app. It gives me the following error : "Uncaught error. Something went wrong with the query and rendering of this component. Failed to construct 'Worker': Access to the script at 'blob:file:///a61f0d6d-b238-40b5-a1f3-15e899dd8af3' is denied by the document's Content Security Policy."
I’m on macOS Catalina 10.15.7, version of the app is 0.81.1. I also tried it on another macOS computer, same issue.
Any idea on what to do ?
Thanks for the great work here !
The text was updated successfully, but these errors were encountered: