git://git.nikiroo.be
/
nikiroo-utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixes:
[nikiroo-utils.git]
/
src
/
be
/
nikiroo
/
fanfix
/
reader
/
BasicReader.java
diff --git
a/src/be/nikiroo/fanfix/reader/BasicReader.java
b/src/be/nikiroo/fanfix/reader/BasicReader.java
index 4b444940c11a07cfeb15a108171126c4bfe14baf..8285edb47e74266bc747662fb3bbec87b5ae5460 100644
(file)
--- a/
src/be/nikiroo/fanfix/reader/BasicReader.java
+++ b/
src/be/nikiroo/fanfix/reader/BasicReader.java
@@
-71,7
+71,7
@@
public abstract class BasicReader implements Reader {
}
@Override
}
@Override
- public MetaData getMeta() {
+ public
synchronized
MetaData getMeta() {
return meta;
}
return meta;
}
@@
-98,7
+98,7
@@
public abstract class BasicReader implements Reader {
throw new IOException("URL not supported: " + source.toString());
}
throw new IOException("URL not supported: " + source.toString());
}
- story = support.process(
source,
pg);
+ story = support.process(pg);
if (story == null) {
throw new IOException(
"Cannot retrieve story from external source: "
if (story == null) {
throw new IOException(
"Cannot retrieve story from external source: "
@@
-264,8
+264,11
@@
public abstract class BasicReader implements Reader {
protected void start(File target, String program) throws IOException {
if (program == null) {
boolean ok = false;
protected void start(File target, String program) throws IOException {
if (program == null) {
boolean ok = false;
- for (String starter : new String[] { "xdg-open", "start", "run" }) {
+ for (String starter : new String[] { "xdg-open", "open", "see",
+ "start", "run" }) {
try {
try {
+ Instance.getTraceHandler().trace(
+ "starting external program");
Runtime.getRuntime().exec(
new String[] { starter, target.getAbsolutePath() });
ok = true;
Runtime.getRuntime().exec(
new String[] { starter, target.getAbsolutePath() });
ok = true;
@@
-277,6
+280,7
@@
public abstract class BasicReader implements Reader {
throw new IOException("Cannot find a program to start the file");
}
} else {
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() });
}
Runtime.getRuntime().exec(
new String[] { program, target.getAbsolutePath() });
}