EnvPane icon indicating copy to clipboard operation
EnvPane copied to clipboard

Can't be opened due to quarantine flag

Open hagedose opened this issue 2 years ago • 4 comments
trafficstars

When trying to open the PrefPane, I get this message: '"EnvPane.prefPane" can't be opened because Apple cannot check it for malicious software. This software needs to be updated. Contact the developer for more information.'

Screenshot 2023-02-21 at 09 47 13

What version of EnvPane are you using. Did you download the official release or did you build it yourself?

Version 0.7, downloaded from GitHub

What version of OS X are you using (or attempting to use) EnvPane on?

Ventura 13.2.1

Did you install EnvPane for the current user only or for all users? I admit, that's a bit of a trick question.

Current user only

Did you install EnvPane as an administrative user?

Yes

Can you provide relevant system.log messages? You can use the Console application to get those: Hit Cmd-Space, type Console, hit enter (the Console app should open), click on system.log on the left, click the search bar at the top and type Env to filter the list. Copy and paste it below but be sure to redact any confidential informations such as account names, IP addresses etc.

There is nothing in system.log, probably because the PrefPane isn't loading at all.

hagedose avatar Feb 21 '23 08:02 hagedose

If you click on "Show in Finder" and then right click on the EnvPane.prefPane file and select "Open" then it will prompt you with a different dialog box that has an "Open" button. Once you press that, the new prefpane will load and it will appear in the sidebar as "Environment Variables".

(What this little dance does behind the scenes is to remove the quarantine flag. Google for more details (eg, https://derflounder.wordpress.com/2012/11/20/clearing-the-quarantine-extended-attribute-from-downloaded-applications/))

rloomans avatar Feb 21 '23 10:02 rloomans

Thanks! I was actually familiar with all that, but I had only ever used it on "real" applications.

hagedose avatar Feb 21 '23 13:02 hagedose

I think that quirk should at least be documented.

hschmidt avatar Feb 21 '23 17:02 hschmidt

If you click on "Show in Finder" and then right click on the EnvPane.prefPane file and select "Open" then it will prompt you with a different dialog box that has an "Open" button. Once you press that, the new prefpane will load and it will appear in the sidebar as "Environment Variables".

That workaround doesn't work for me on Monterey.

Ahh sheesh, so I'm just learning about notarization which appears to be required when the bundle is quarantined, which it is when copied out of a quarantined disk image. What a pain in the butt!

https://lapcatsoftware.com/articles/without-notarization.html

hschmidt avatar Feb 22 '23 05:02 hschmidt