--- src/Core/OOLogOutputHandler.m.orig	Wed Mar 31 00:04:42 2010
+++ src/Core/OOLogOutputHandler.m	Wed Mar 31 00:18:24 2010
@@ -634,7 +634,7 @@ static NSString *GetAppName(void)
 	
 	if (appName == nil)
 	{
-		bundle = [NSBundle mainBundle];
+		bundle = [NSBundle bundleWithPath: BUNDLE_PATH];
 		appName = [bundle objectForInfoDictionaryKey:@"CFBundleName"];
 		if (appName == nil)  appName = [bundle bundleIdentifier];
 		if (appName == nil)  appName = @"<unknown application>";
