Changes to allow clean app termination even when multiple copies of the

same app are running.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21788 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
CaS 2005-10-09 06:39:08 +00:00
parent b4c8d9c768
commit d3fe0c73a5
6 changed files with 258 additions and 56 deletions

View file

@ -1153,9 +1153,10 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
- (NSDictionary*) activeApplication
{
NSProcessInfo *processInfo = [NSProcessInfo processInfo];
NSString *appName = [[GSServicesManager manager] port];
return [NSDictionary dictionaryWithObjectsAndKeys:
[processInfo processName], @"NSApplicationName",
appName, @"NSApplicationName",
[[NSBundle mainBundle] bundlePath], @"NSApplicationPath",
[NSNumber numberWithInt: [processInfo processIdentifier]],
@"NSApplicationProcessIdentifier",