Ok this is more of a work around than a fix but it works.
I have an issue where my mac mini that I use for WSJT-X extensively, loses power often its annoying and a separate issue but anyway.
Anyone running WSJT-X on a mac knows that after each boot you the sysctl.conf file needs to be copied back into the /etc folder to get the shared memory config set right for wsjt-x to work.
I poked around this a little and found that what happens on boot is OSX will mark /etc/sysctl.conf as quarantined.
This can be undone on boot by making an automator application to execute the command
xattr -d com.apple.quarantine /etc/sysctl.conf
A couple of things about this,
1. This must be executed with Administrator privileges
2. This must be run on boot so that the file continues to remain in the directory and be processed for next boot.
So here is how I set this up.
Step 1 install command line tools open terminal and run this "xcode-select --install"
- This will install developer command line tools that are used to sign the automator app we will talk about next.
Step 2 create an Automator app
- Open automator, click file and new
- Select Application
- Find Utilities on the left and drag "Run Shell Script to the right"
- in the big box on the right paste in this
osascript -e 'do shell script "sudo xattr -d com.apple.quarantine /etc/sysctl.conf" with administrator privileges'
This will remove the quarantine tag from the file, and ask you for your password when it runs so that it can gain the elevated privileges that it requires to move the flag.
Save this as an application, I used the name fix_wsjt-x but you can call it anything you like.
Next go to settings, users and Groups find your user and select login items.
Click the + button and add a new item for the automator app (located in the Applications folder)