问题
I'm working on a simple SIMBL bundle to decrease the FullScreen animation time in Lion. It's no big deal to change the animation of the windows, however doing that for the menubar/desktop animation part (where the menubar+desktop slide to the left) is a problem. I think that Dock.app is responsible for that animation. However, SIMBL can't inject a bundle into Dock.app (same with Finder).
I tried creating a .dylib which then would be loaded into Dock by setting the LSEnvironment in Dock's Info.plist but that failed.
Is there any good way to inject a bundle/dylib into Dock.app? Thanks in Advance
PS: Dock is root:wheel :(
回答1:
Because I only need x64 injection (Lion) I ended up using this https://github.com/StarProject/StarRuntime It's way easier to use than mach_inject or similar and GPL.
回答2:
You cannot inject in Dock & Finder with SIMBL. SIMBL works for cocoa applications only! You have to write your own injection system something like this, http://scplugin.tigris.org/svn/scplugin/trunk/ (username:guest, password:guest) or Look for Application Enhancer.
回答3:
you can also check inject&interpose
来源:https://stackoverflow.com/questions/6831778/simbl-bundle-dylib-injection-into-dock-app