quicksilver/Quicksilver — pull request #636 by pjrobertson (2012-01-15 12:14:47+00:00)
Title: !URGENT: Fix bug where all plugins get deleted

So the 'plugins deleting' bug started happening for me today. Annoying, but good, as I've managed to debug and fix it.

Turns out (see the commit) that the plugins support path was being searched twice, so the 'allBundles' array had duplicated of the all the plugins in App Sup/QS/PlugIns.
In turn, when QS went about loading the plugins, on trying to load the plugins in the App Sup folder the second time it thought they were duplicates and so deleted them (although they were actually the same files)

Line 468 correctly adds

/Library/...app support path
~/Library/...app support path
/Network/Library/...app support path

already, so there was no need to add ~/Library/...app support path again.

It'd be interesting to see what people who aren't having this problem get if they set a breakpoint (WITHOUT this merged in) just before `	for (NSString *currPath in bundleSearchPaths) {` and see what they get