本文介绍了SIMBL/Bundle/dylib注入Dock.app的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在研究一个简单的SIMBL捆绑包,以减少Lion中的全屏动画时间.更改窗口的动画没什么大不了的,但是对于菜单栏/桌面动画部分(左侧的菜单栏+桌面幻灯片)执行此操作是一个问题.我认为Dock.app负责该动画.但是,SIMBL无法将捆绑软件注入Dock.app(与Finder相同).

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).

我尝试创建.dylib,然后通过在Dock的Info.plist中设置LSEnvironment将其加载到Dock中,但是失败了.

I tried creating a .dylib which then would be loaded into Dock by setting the LSEnvironment in Dock's Info.plist but that failed.

是否有什么好方法可以将bundle/dylib注入Dock.app?在此先感谢

Is there any good way to inject a bundle/dylib into Dock.app?Thanks in Advance

PS:Dock是root:wheel:(

PS: Dock is root:wheel :(

推荐答案

因为我只需要x64注入(Lion),所以最终使用了这个 https://github.com/StarProject/StarRuntime 它比mach_inject或类似的GPL更容易使用.

Because I only need x64 injection (Lion) I ended up using this https://github.com/StarProject/StarRuntimeIt's way easier to use than mach_inject or similar and GPL.

这篇关于SIMBL/Bundle/dylib注入Dock.app的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-16 23:17