}
@Override
- public synchronized void setMeta(URL source, Progress pg)
+ public synchronized void setMeta(URL url, Progress pg)
throws IOException {
- BasicSupport support = BasicSupport.getSupport(source);
+ BasicSupport support = BasicSupport.getSupport(url);
if (support == null) {
- throw new IOException("URL not supported: " + source.toString());
+ throw new IOException("URL not supported: " + url.toString());
}
- story = support.process(source, pg);
+ story = support.process(pg);
if (story == null) {
throw new IOException(
"Cannot retrieve story from external source: "
- + source.toString());
+ + url.toString());
}
meta = story.getMeta();
for (String starter : new String[] { "xdg-open", "open", "see",
"start", "run" }) {
try {
+ Instance.getTraceHandler().trace(
+ "starting external program");
Runtime.getRuntime().exec(
new String[] { starter, target.getAbsolutePath() });
ok = true;
throw new IOException("Cannot find a program to start the file");
}
} else {
+ Instance.getTraceHandler().trace("starting external program");
Runtime.getRuntime().exec(
new String[] { program, target.getAbsolutePath() });
}