Add support to GrowlSafari for the WebKit nightly-build launcher.
1.1 --- a/Extras/GrowlSafari/GrowlSafariHelper.m Tue Sep 15 10:07:43 2009 -0700
1.2 +++ b/Extras/GrowlSafari/GrowlSafariHelper.m Tue Sep 15 10:08:03 2009 -0700
1.3 @@ -28,7 +28,7 @@
1.4 for(process in [[NSWorkspace sharedWorkspace] launchedApplications])
1.5 {
1.6 NSString *bundleID = [process objectForKey:@"NSApplicationBundleIdentifier"];
1.7 - if (bundleID && [bundleID caseInsensitiveCompare:SAFARI_BUNDLE_ID] == NSOrderedSame)
1.8 + if (bundleID && ([bundleID caseInsensitiveCompare:SAFARI_BUNDLE_ID] == NSOrderedSame) || ([bundleID caseInsensitiveCompare:WEBKIT_LAUNCHER_BUNDLE_ID] == NSOrderedSame))
1.9 {
1.10 if([[process objectForKey:@"NSApplicationProcessIdentifier"] integerValue] == pid)
1.11 {
2.1 --- a/Extras/GrowlSafari/GrowlSafariLoader.m Tue Sep 15 10:07:43 2009 -0700
2.2 +++ b/Extras/GrowlSafari/GrowlSafariLoader.m Tue Sep 15 10:08:03 2009 -0700
2.3 @@ -66,7 +66,7 @@
2.4 - (void) workspaceDidLaunchApplication:(NSNotification *)notification {
2.5 NSDictionary *launchedProcessInfo = [notification userInfo];
2.6 NSString *bundleID = [launchedProcessInfo objectForKey:@"NSApplicationBundleIdentifier"];
2.7 - if (bundleID && [bundleID caseInsensitiveCompare:SAFARI_BUNDLE_ID] == NSOrderedSame) {
2.8 + if (bundleID && ([bundleID caseInsensitiveCompare:SAFARI_BUNDLE_ID] == NSOrderedSame) || ([bundleID caseInsensitiveCompare:WEBKIT_LAUNCHER_BUNDLE_ID] == NSOrderedSame)) {
2.9 NSString *bundlePath = [[NSBundle bundleForClass:[self class]] pathForResource:@"GrowlSafari" ofType:@"bundle"];
2.10 if (bundlePath) {
2.11 NSNumber *PIDNum = [launchedProcessInfo objectForKey:@"NSApplicationProcessIdentifier"];
3.1 --- a/Extras/GrowlSafari/InterestingBundleIdentifiers.h Tue Sep 15 10:07:43 2009 -0700
3.2 +++ b/Extras/GrowlSafari/InterestingBundleIdentifiers.h Tue Sep 15 10:08:03 2009 -0700
3.3 @@ -1,1 +1,2 @@
3.4 #define SAFARI_BUNDLE_ID @"com.apple.Safari"
3.5 +#define WEBKIT_LAUNCHER_BUNDLE_ID @"org.webkit.nightly.WebKit"