From c072ed516cb296204ac7de1da8187b831ab25f41 Mon Sep 17 00:00:00 2001 From: rfm Date: Tue, 6 Mar 2007 21:46:16 +0000 Subject: [PATCH] use gpbs auto stop git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24790 72102866-910b-0410-8b05-ffd578937521 --- ChangeLog | 7 ++++++- Source/NSPasteboard.m | 10 +++++++--- 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 92e3e4830..d77759064 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-03-08 Richard Frith-Macdonald + + * Source/NSPasteboard.m: Launch gpbs with --auto option so that + it shuts down again when all connections are closed. + 2007-03-06 Nicola Pero * Source/GSServicesManager.m ([+newWithApplication:]): If the base @@ -35,7 +40,7 @@ * Source/NSView.m (initWithFrame:): Use value from super init call and don't set pre-set ivars. -2007-03-08 Richard Frith-Macdonald +2007-03-06 Richard Frith-Macdonald * Source/GSServicesManager.m: * Source/NSWorkspace.m: diff --git a/Source/NSPasteboard.m b/Source/NSPasteboard.m index 8e7d94f0c..b5ab92f88 100644 --- a/Source/NSPasteboard.m +++ b/Source/NSPasteboard.m @@ -2006,12 +2006,16 @@ description, [cmd stringByDeletingLastPathComponent]); { args = [[NSArray alloc] initWithObjects: @"-NSHost", host, - @"-GSStartupNotification",@"GSStartup-GPBS", nil]; + @"-GSStartupNotification", @"GSStartup-GPBS", + @"--auto", + nil]; } else { args = [[NSArray alloc] initWithObjects: - @"-GSStartupNotification",@"GSStartup-GPBS", nil]; + @"-GSStartupNotification",@"GSStartup-GPBS", + @"--auto", + nil]; } /* @@ -2035,7 +2039,7 @@ description, [cmd stringByDeletingLastPathComponent]); timeoutDate = [NSDate dateWithTimeIntervalSinceNow: 5.0]; while ([startIndicator count] - && [timeoutDate timeIntervalSinceNow] > 0.0) + && [timeoutDate timeIntervalSinceNow] > 0.0) { [[NSRunLoop currentRunLoop] runMode: NSDefaultRunLoopMode