+ File tmp = getFile(Config.CACHE_DIR);
+ readerTmp = getFile(Config.CACHE_DIR_LOCAL_READER);
+
+ 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) {
+ tmp = new File(tmpDir, "fanfic-reader");
+ }
+ } else {
+ syserr(new IOException(
+ "The system does not have a default temporary directory"));
+ }
+ }