Thanks for reporting that.
Looking at the code, I didn't include Linux in there at all:
- Code: Select all
/** Open the appropriate application with the temp file and 'switch' */
private void openSwitch(String file, String app) {
File path = new File(app);
try {
String[] commands = null;
switch (Alchemy.PLATFORM) {
case MACOSX:
commands = new String[]{"open", "-a", path.getName(), file};
break;
case WINDOWS:
commands = new String[]{"cmd", "/c", "start \"" + path.getName() + "\"", "\"Alchemy\"", file};
break;
}
if (commands != null) {
Runtime.getRuntime().exec(commands);
}
//Runtime.getRuntime().exec("open "+file);
} catch (IOException ex) {
System.err.println(ex);
}
}
I just need to find how to launch a file in an application using the exec() command on Linux.
Some info here:
http://www.rgagnon.com/javadetails/java-0014.htmlIn particular:
- Code: Select all
String[] cmd = {"/bin/sh", "-c", "ls > hello"};
Runtime.getRuntime().exec(cmd);
Might be time to install linux...
RE: SVG
I figure we could do that for the Switch stuff instead of PDF perhaps. PDF is nice to use for the session saving I think though. We could also add an SVG export to the menu using
Batik