Skip to content

Instantly share code, notes, and snippets.

@norio-nomura
Last active May 28, 2023 06:06
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save norio-nomura/f4346e9cb9db0a411779 to your computer and use it in GitHub Desktop.
Save norio-nomura/f4346e9cb9db0a411779 to your computer and use it in GitHub Desktop.
Note: About injection mechanism of EasySIMBL extended from SIMBL-0.9.9

Note: About injection mechanism of EasySIMBL extended from SIMBL-0.9.9

Inject into processes launched before launching SIMBL Agent.app

Since EasySIMBL-1.0

Application resume on login happen before launching original SIMBL Agent.app. On launching, EasySIMBL's SIMBL Agent.app find target apps from already launched apps, and inject into it.

Inject into Background/Agent applications

Since EasySIMBL-1.6

Until EasySIMBL-1.5.1, SIMBL Agent.app was observing Regular applications launching except Background/Agent applications. This behavior came from original SIMBL v0.9.9.

On EasySIMBL-1.6, SIMBL Agent.app has been changed to observing applications launching all Regular, Background and Agent applications. It makes EasySIMBL can inject some plugins into some Background or Agent applications. e.g. com.apple.appkit.xpc.openAndSavePanelService, com.apple.security.pboxd.

For supporting them, EasySIMBL will inject plugins as following:

  • Plugins which specified "*" in SIMBLTargetApplications will be injected into all non Background/Agent applications.
  • Plugins which specified explicitly target bundle identifier in SIMBLTargetApplications will be injected into target application whether Background/Agent or not.
  • Plugins specified both "*" and explicitly target bundle identifier in SIMBLTargetApplications will be injected into target whether application is Background/Agent or not, and will be injected into all non Background/Agent applications.

Safari: "com.apple.Safari" is regular application

SIMBLTargetApplications Safari com.apple.security.pboxd
"*" Yes No
"com.apple.security.pboxd" No Yes
"*" and "com.apple.security.pboxd" Yes Yes

As far as I know, ColofulSidebar uses this mechanism.

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