Always look for a running GHA and register with that, instead of trying to register with a GHA that isn't running. future-1.2.1
authorPeter Hosey <hg@boredzo.org>
Sat Sep 26 00:26:08 2009 -0700 (2009-09-26)
branchfuture-1.2.1
changeset 44603cbd662ab3c1
parent 4457 384b50bb0ab1
child 4461 b1ac0f846a26
child 7322 53bbe829d325
Always look for a running GHA and register with that, instead of trying to register with a GHA that isn't running.
Framework/Source/GrowlApplicationBridge.m
     1.1 --- a/Framework/Source/GrowlApplicationBridge.m	Thu Sep 17 23:26:08 2009 -0400
     1.2 +++ b/Framework/Source/GrowlApplicationBridge.m	Sat Sep 26 00:26:08 2009 -0700
     1.3 @@ -729,20 +729,14 @@
     1.4  	NSBundle *growlPrefPaneBundle;
     1.5  	NSString *growlHelperAppPath;
     1.6  
     1.7 -#ifdef DEBUG
     1.8 -	//For a debug build, first look for a running GHA. It might not actually be within a Growl prefpane bundle.
     1.9 +	//First look for a running GHA. It might not actually be within a Growl prefpane bundle.
    1.10  	growlHelperAppPath = [[GrowlPathUtilities runningHelperAppBundle] bundlePath];
    1.11  	if (!growlHelperAppPath) {
    1.12 +		//Look for an installed-but-not-running GHA.
    1.13  		growlPrefPaneBundle = [GrowlPathUtilities growlPrefPaneBundle];
    1.14  		growlHelperAppPath = [growlPrefPaneBundle pathForResource:@"GrowlHelperApp"
    1.15  														   ofType:@"app"];
    1.16  	}
    1.17 -	NSLog(@"Will use GrowlHelperApp at %@", growlHelperAppPath);
    1.18 -#else
    1.19 -	growlPrefPaneBundle = [GrowlPathUtilities growlPrefPaneBundle];
    1.20 -	growlHelperAppPath = [growlPrefPaneBundle pathForResource:@"GrowlHelperApp"
    1.21 -													   ofType:@"app"];
    1.22 -#endif
    1.23  
    1.24  #ifdef GROWL_WITH_INSTALLER
    1.25  	if (growlPrefPaneBundle) {