diff --git a/ChangeLog b/ChangeLog index 2ca2586cd..2f20cf554 100644 --- a/ChangeLog +++ b/ChangeLog @@ -4,6 +4,8 @@ Reduce private method name pollution a little. * Images/common_UnknownApplication.tiff: copied from WM ... * Images/common_UnknownTool.tiff: similar image for unix cmd-line tools. + * Source/NSApplication.m: Add some user info to the launch + notification (provided by urbanek@host.sk). 2003-05-05 Michael Hanni diff --git a/Source/NSApplication.m b/Source/NSApplication.m index f76891c58..080d1d9a2 100644 --- a/Source/NSApplication.m +++ b/Source/NSApplication.m @@ -827,8 +827,13 @@ static NSCell* tileCell = nil; [nc postNotificationName: NSApplicationDidFinishLaunchingNotification object: self]; - userInfo = [NSDictionary dictionaryWithObject: - [[NSProcessInfo processInfo] processName] forKey: @"NSApplicationName"]; + userInfo = [NSDictionary dictionaryWithObjectsAndKeys: + [[NSProcessInfo processInfo] processName], @"NSApplicationName", + [[NSBundle mainBundle] bundlePath], @"NSApplicationPath", + [NSNumber numberWithInt: [[NSProcessInfo processInfo] processIdentifier]], + @"NSApplicationProcessIdentifier", + nil]; + NS_DURING [[workspace notificationCenter] postNotificationName: NSWorkspaceDidLaunchApplicationNotification