orca icon indicating copy to clipboard operation
orca copied to clipboard

Mac OS X: Getting rid of "Do you want the application" orca.app to accept incoming network connections

Open hkokko opened this issue 5 years ago • 5 comments

Is there a command line parameter or something else to get rid of the above dialog box. It comes up every time I run my python plotly application. My app works with "deny" and I would not like to give the "Allow"

hkokko avatar Nov 25 '19 06:11 hkokko

Maybe @jonmmease could help out. I don't have a Mac at the moment and I am not familiar with Mac OS X permission system.

antoinerg avatar Jan 21 '20 20:01 antoinerg

For context, when used with plotly.py orca is run as a subprocess and plotly.py communicates with it over a local network port. As far as I know, that means you will need to give orca.app "allow" permissions.

Since it is a subprocess, I believe you will only be giving these permissions to the orca.app process, not to your own application.

jonmmease avatar Jan 22 '20 10:01 jonmmease

plot.ly with orca.app seems to work whether I choose to deny or allow the permission. I would just love to get rid of the dialog every time I run my program...

hkokko avatar Jan 25 '20 20:01 hkokko

I also had this issue and managed to resolve it by signing the application causing the prompt to be raised. In this case it would be orca.app (and possibly unsigned libraries inside the app package) that have to be signed.

I found the solution here: https://apple.stackexchange.com/a/150711, but it boils down to running

codesign --force --sign - /path/to/application.app

which performs "ad-hoc signing" of the application. Alternatively, you can use

codesign --force --sign <certname> /path/to/application.app

to sign using a certificate (https://apple.stackexchange.com/a/121010).

The way I understand it is that the permission dialog is shown on the first launch, but if the application is not signed the response is not saved - hence the reoccurring dialog.

jcsmit avatar Apr 22 '20 13:04 jcsmit

I was able to get rid of the problem adding --deep and as super user, so:

sudo codesign --force --deep --sign - /path/to/application.app

Nevertheless you save me a lot of clicking, thank you!

lum4chi avatar Apr 28 '20 15:04 lum4chi