Skip to content

Instantly share code, notes, and snippets.

@ponimas
Last active August 17, 2023 17:02
Show Gist options
  • Star 8 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ponimas/de3179e84410a76cbe314ecc2c534772 to your computer and use it in GitHub Desktop.
Save ponimas/de3179e84410a76cbe314ecc2c534772 to your computer and use it in GitHub Desktop.
disable unnecessary mojave services
# Disable / Enable Dashboard
# Settings / Mission control / Dashboard (selector) - Off
# or
# completely disable:
defaults write com.apple.dashboard mcx-disabled -boolean YES; killall Dock
# enable again:
#defaults write com.apple.dashboard mcx-disabled -boolean NO; killall Dock
defaults write NSGlobalDomain NSAutomaticWindowAnimationsEnabled -bool false
defaults write NSGlobalDomain NSWindowResizeTime -float 0.001
defaults write -g QLPanelAnimationDuration -float 0
defaults write com.apple.dock autohide-time-modifier -float 0
defaults write com.apple.dock launchanim -bool false
sudo sysctl debug.lowpri_throttle_enabled=0
sudo launchctl remove com.apple.AddressBook.abd
sudo launchctl remove com.apple.CallHistoryPluginHelper
sudo launchctl remove com.apple.DiagnosticReportCleanup.plist
sudo launchctl remove com.apple.ReportCrash
sudo launchctl remove com.apple.ReportCrash.Self
sudo launchctl remove com.apple.ReportPanic
sudo launchctl remove com.apple.Safari.SafeBrowsing.Service
sudo launchctl remove com.apple.SafariCloudHistoryPushAgent
sudo launchctl remove com.apple.SafariHistoryServiceAgent
sudo launchctl remove com.apple.SafariLaunchAgent
sudo launchctl remove com.apple.SafariNotificationAgent
sudo launchctl remove com.apple.SafariPlugInUpdateNotifier
sudo launchctl remove com.apple.SafariPlugInUpdateNotifier
sudo launchctl remove com.apple.TrustEvaluationAgent
sudo launchctl remove com.apple.ap.adprivacyd
sudo launchctl remove com.apple.ap.adprivacyd
sudo launchctl remove com.apple.appstoreagent
sudo launchctl remove com.apple.familycircled
sudo launchctl remove com.apple.gamed.plist
sudo launchctl remove com.apple.helpd
sudo launchctl remove com.apple.iTunesHelper.launcher
sudo launchctl remove com.apple.mobiledeviceupdater
sudo launchctl remove com.apple.safaridavclient
sudo launchctl remove com.apple.screensharing.MessagesAgent
sudo launchctl remove com.apple.siriknowledged
sudo launchctl remove com.apple.softwareupdate_notify_agent
# disable sending of crash reports to Apple (SubmitDiagInfo)
sudo launchctl remove com.apple.SubmitDiagInfo.plist
# disable photolibraryd
# com.apple.photomoments.xpc tries to access the internet without any reason and authorisation
# photos.app stops working after this
sudo launchctl remove com.apple.photolibraryd
sudo launchctl remove com.apple.cloudphotosd
# after restart they show up here
sudo launchctl remove com.apple.photolibraryd.plist
sudo launchctl remove com.apple.cloudphotosd.plist
# disable Apple Push Notification Service (apsd)
# FaceTime could complain
sudo launchctl remove com.apple.apsd.plist
@cryo-kronos
Copy link

cryo-kronos commented Aug 7, 2023

I'm seeing daily SafariPlugInUpdateNotifier crashes on my Mojave system. Started a couple months ago and nothing I've done has stopped it.

A couple of noobish questions:

  1. Is there a reason why "sudo launchctl remove com.apple.SafariPlugInUpdateNotifier" is run twice in this script?

  2. Do I need to run this script and/or commands after each restart or do they persist through restarts?

@ponimas
Copy link
Author

ponimas commented Aug 17, 2023

@cryo-kronos Hey! I'm really sorry, but I remember nothing about this script, it was 4 years ago, so all memories have vanished.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment