Workspace manager interoperability improvements.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22410 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2006-02-02 12:39:26 +00:00
parent 8403cc0691
commit b9f1bdd4f0
3 changed files with 87 additions and 13 deletions

View file

@ -2485,6 +2485,19 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
RELEASE(limit);
}
}
if (app == nil && port != nil && [host isEqual: @""] == YES)
{
/*
* The application is not running on this host ... fake a termination
* notification for it and use that to remove it from the on-disk
* list of launched applications.
*/
GSLaunched([NSNotification
notificationWithName: NSWorkspaceDidTerminateApplicationNotification
object: self
userInfo: [NSDictionary dictionaryWithObject: port
forKey: @"NSApplicationName"]], NO);
}
TEST_RELEASE(when);
return app;
}