The option -a no longer starts the provided applciation

directly, but uses this application to open the specified files.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17364 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2003-07-26 15:23:00 +00:00
parent 0a6e43c285
commit 377254c2f1

View file

@ -73,12 +73,14 @@ main(int argc, char** argv, char **env_c)
if (application)
{
[workspace launchApplication: application];
// Don't start the application itself but use it for file opening.
// [workspace launchApplication: application];
}
if (filetoopen)
{
[workspace openFile: filetoopen];
[workspace openFile: filetoopen
withApplication: application];
}
if (filetoprint)
@ -169,7 +171,8 @@ main(int argc, char** argv, char **env_c)
}
else
{
if (![workspace openFile: arg])
if (![workspace openFile: arg
withApplication: application])
{
// no recognized extension,
// run application indicated by environment var.