horosproject / horos

Horos™ is a free, open source medical image viewer. The goal of the Horos Project is to develop a fully functional, 64-bit medical image viewer for OS X. Horos is based upon OsiriX and other open source medical imaging libraries. Horos is made freely available under the GNU Lesser General Public License, Version 3 (LGPL-3.0). Horos is linked against the Grok JPEG 2000 library, for fast viewing of JPEG 2000 images. This library is licensed under the terms of the GNU Affero General Public License.
http://www.horosproject.org
Other
492 stars 143 forks source link

Horos cannot launch Mail app on macOS Catalina #566

Open jensen0914 opened 4 years ago

jensen0914 commented 4 years ago

For macOS Catalina, scripts must have an automation privilege to run or they appear not to do anything. Messages in the Console output show they are blocked. This may impact more than the "Export to Email" function.

From the Horos Project Google Group:

On Wednesday, April 29, 2020 at 2:48:04 AM UTC-5, Markus Fassold wrote:

I used the "Export to Email" function all the time in the past, but suddenly it no longer works. After executing the function, the mail app opens, but nothing happens after that. Usually a new email was created and the selected picture attached. I use version 4.0.0 RC4.

On Thursday, April 30, 2020 at 8:20:19 AM UTC-5, Todd Jensen wrote:

I was able to reproduce your issue using Horos 4.0.0RC4 and macOS Catalina 10.15.4. When I run Horos from a Terminal, it requests a security privilege that is needed to allow Horos to "control" the email app.

A workaround for now is to run Horos from the Terminal:

1) Launch /Applications/Utilities/Terminal.app 2) Type "/Applications/Horos/Contents/MacOS/Horos" and click .

Now when you attempt to email a file, you will see a dialog asking you to allow Terminal.app which you to click "OK". This will add a privilege to allow Horos to access the Mail app via Terminal (you can disable this later in System Preferences - screenshot attached showing it enabled).

Screen Shot 2020-04-30 at 8 17 35 AM

I will file an issue for this as Horos will need to request the privilege from within the code.

Todd Jensen, PhD Jensen Informatics LLC

jensen0914 commented 4 years ago

Looks like the entitlement can be added in Xcode: https://developer.apple.com/documentation/bundleresources/entitlements/com_apple_security_automation_apple-events?language=objc

Screen Shot 2020-04-30 at 9 19 59 AM
jensen0914 commented 4 years ago

Fixed in branch HOROS-566.