X-Git-Url: http://git.nikiroo.be/?p=fanfix.git;a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Ffanfix%2FInstance.java;h=aacf0c50860064a0f980077ad641ab36aa5d837d;hp=cd57efe038532e78d6983e2e2cbd410184e16884;hb=68e370a441d8e6b10bfaa904ecacb29e7d6160d8;hpb=3b2b638f7e1395702f843b5b19d7959327f604b2 diff --git a/src/be/nikiroo/fanfix/Instance.java b/src/be/nikiroo/fanfix/Instance.java index cd57efe..aacf0c5 100644 --- a/src/be/nikiroo/fanfix/Instance.java +++ b/src/be/nikiroo/fanfix/Instance.java @@ -87,20 +87,14 @@ public class Instance { debug = true; } - if (tmp == null || readerTmp == null) { - String tmpDir = System.getProperty("java.io.tmpdir"); - if (tmpDir != null) { - if (tmp == null) { - tmp = new File(tmpDir, "fanfic-tmp"); - } - if (readerTmp == null) { - readerTmp = new File(tmpDir, "fanfic-reader"); - } - } else { - syserr(new IOException( - "The system does not have a default temporary directory")); - } + // Could have used: System.getProperty("java.io.tmpdir") + if (tmp == null) { + tmp = new File(configDir, "tmp"); + } + if (readerTmp == null) { + readerTmp = new File(configDir, "tmp-reader"); } + // if (coverDir != null && !coverDir.exists()) { syserr(new IOException(