try
{
+ String exePath = jEdit.getProperty(
+ "factor.external.program");
+ String imagePath = jEdit.getProperty(
+ "factor.external.image");
List args = new ArrayList();
- args.add(jEdit.getProperty("factor.external.program"));
- args.add(jEdit.getProperty("factor.external.image"));
+ args.add(exePath);
+ args.add(imagePath);
args.add("-shell=telnet");
args.add("-telnetd-port=" + PORT);
String[] extraArgs = jEdit.getProperty(
"factor.external.args")
.split(" ");
addNonEmpty(extraArgs,args);
- process = Runtime.getRuntime().exec((String[])args.toArray(
- new String[args.size()]));
+ process = Runtime.getRuntime().exec(
+ (String[])args.toArray(
+ new String[args.size()]),
+ null,
+ new File(MiscUtilities
+ .getParentOfPath(imagePath)));
external = new ExternalFactor(PORT);
}
" (OS: " write os write
" CPU: " write cpu write
")" print
- "Copyright (C) 2003, 2004 Slava Pestov" print
- "Copyright (C) 2004 Chris Double" print
- "Copyright (C) 2004 Mackenzie Straight" print
+ "Copyright (C) 2003, 2005 Slava Pestov" print
+ "Copyright (C) 2004, 2005 Chris Double" print
+ "Copyright (C) 2004, 2005 Mackenzie Straight" print
"Type ``exit'' to exit, ``help'' for help." print
terpri
room.