mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 08:30:59 +00:00
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:
parent
0a6e43c285
commit
377254c2f1
1 changed files with 6 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue