LuLu icon indicating copy to clipboard operation
LuLu copied to clipboard

How to restart LuLu using Bash

Open devahmd opened this issue 7 months ago • 2 comments

Im trying to Implement something like Little Snitch Profiles , and I created to plist files and made Bash script (using ChatGPT) to switch between, but I have problem restarting the app, tried to kill the process then open the application but didn't work, because it requiring allow network extensions and permissions again.

So Anyone knows how to restart it using Bash please?

#!/bin/bash

PROFILE=$1
RULES_DIR=~/LuluRules

if [ "$PROFILE" == "apple-update-enable" ]; then
  cp "$RULES_DIR/apple-update-rules.plist" /Library/Objective-See/LuLu/rules.plist
elif [ "$PROFILE" == "apple-update-disable" ]; then
  cp "$RULES_DIR/apple-disable-rules.plist" /Library/Objective-See/LuLu/rules.plist
else
  echo "Unknown profile"
  exit 1
fi

Tried to do something like

killall LuLu
open /Applications/LuLu.app

devahmd avatar May 26 '25 07:05 devahmd

AFAIK, as a "Security" feature, Apple doesn't allow System (Network) Extensions to be unloaded via the CLI (on non-MDM'd machines). This is to prevent, for example, malware from killing the core components of security tools.

objective-see avatar May 26 '25 15:05 objective-see

Ah, that makes sense — thanks for the heads up!

devahmd avatar May 26 '25 16:05 devahmd