SIMBL/Bundle/dylib injection into Dock.app

眉间皱痕 提交于 2019-12-07 10:40:53

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!