From 1bfdbcfe56730d62d47f7b9b14f2985cb6c91c13 Mon Sep 17 00:00:00 2001 From: Nicola Pero Date: Fri, 27 Apr 2007 12:59:45 +0000 Subject: [PATCH] Fixed launching apps/tools git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/apps/projectcenter/trunk@25089 72102866-910b-0410-8b05-ffd578937521 --- Documentation/ChangeLog | 6 +++++- Framework/PCProjectLauncher.m | 12 ++++++++++-- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git a/Documentation/ChangeLog b/Documentation/ChangeLog index 2ba4b54..75e9987 100644 --- a/Documentation/ChangeLog +++ b/Documentation/ChangeLog @@ -2,7 +2,11 @@ * PCProject.m ([-execToolName]): Fixed typo where 'ExecuToolName' had been typed instead of 'ExecToolName'. - + * PCProjectLauncher.m ([-run:]): Add './' before the name when + we're using openapp, so that we use 'openapp ./Gorm.app' but + 'opentool autogsdoc'. This fixes running application/tool + projects. + 2007-03-06 Nicola Pero * GNUmakefile: Set GNUSTEP_MAKEFILES using gnustep-config if not yet set. diff --git a/Framework/PCProjectLauncher.m b/Framework/PCProjectLauncher.m index 8f2073b..45fdff1 100644 --- a/Framework/PCProjectLauncher.m +++ b/Framework/PCProjectLauncher.m @@ -291,7 +291,16 @@ enum { if ([project isExecutable]) { openPath = [project execToolName]; - [args addObject:[project projectName]]; + if ([openPath isEqualToString: @"openapp"]) + { + /* openapp ./MyApplication.app */ + [args addObject: [NSString stringWithFormat: @"./%@", [project projectName]]]; + } + else + { + /* opentool MyTool */ + [args addObject: [project projectName]]; + } } else { @@ -342,7 +351,6 @@ enum { selector:@selector(runDidTerminate:) name:NSTaskDidTerminateNotification object:launchTask]; - [launchTask setArguments:args]; [launchTask setCurrentDirectoryPath:[project projectPath]]; [launchTask setLaunchPath:openPath];