From 149d522d5390301ed3a4f7ce6c6b831d950271c2 Mon Sep 17 00:00:00 2001 From: Richard Frith-Macdonald Date: Sun, 11 May 2003 14:49:11 +0000 Subject: [PATCH] Minor fix git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16695 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 2 ++ Source/NSApplication.m | 9 +++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) 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