mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 04:50:47 +00:00
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:
parent
b4c8d9c768
commit
d3fe0c73a5
6 changed files with 258 additions and 56 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue