Commits

Peter Hosey  committed 3cbd662

Always look for a running GHA and register with that, instead of trying to register with a GHA that isn't running.

  • Participants
  • Parent commits 384b50b
  • Branches future-1.2.1

Comments (0)

Files changed (1)

File Framework/Source/GrowlApplicationBridge.m

 	NSBundle *growlPrefPaneBundle;
 	NSString *growlHelperAppPath;
 
-#ifdef DEBUG
-	//For a debug build, first look for a running GHA. It might not actually be within a Growl prefpane bundle.
+	//First look for a running GHA. It might not actually be within a Growl prefpane bundle.
 	growlHelperAppPath = [[GrowlPathUtilities runningHelperAppBundle] bundlePath];
 	if (!growlHelperAppPath) {
+		//Look for an installed-but-not-running GHA.
 		growlPrefPaneBundle = [GrowlPathUtilities growlPrefPaneBundle];
 		growlHelperAppPath = [growlPrefPaneBundle pathForResource:@"GrowlHelperApp"
 														   ofType:@"app"];
 	}
-	NSLog(@"Will use GrowlHelperApp at %@", growlHelperAppPath);
-#else
-	growlPrefPaneBundle = [GrowlPathUtilities growlPrefPaneBundle];
-	growlHelperAppPath = [growlPrefPaneBundle pathForResource:@"GrowlHelperApp"
-													   ofType:@"app"];
-#endif
 
 #ifdef GROWL_WITH_INSTALLER
 	if (growlPrefPaneBundle) {