From 3926fe37accc009f3d8811bf3c2965f375175bc6 Mon Sep 17 00:00:00 2001 From: Laurent Clouet Date: Sun, 30 Apr 2017 22:34:16 +0200 Subject: [PATCH] When using system temp directory, store renderer binary archive in a 'permanent' directory to re-use on the next launch --- src/com/sheepit/client/Configuration.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/com/sheepit/client/Configuration.java b/src/com/sheepit/client/Configuration.java index 1a4c8c8..3e182b5 100644 --- a/src/com/sheepit/client/Configuration.java +++ b/src/com/sheepit/client/Configuration.java @@ -195,6 +195,12 @@ public class Configuration { this.workingDirectory.delete(); // hoho this.workingDirectory.mkdir(); this.workingDirectory.deleteOnExit(); + + // since there is no working directory and the client will be working in the system temp directory, + // we can also set up a 'permanent' directory for immutable files (like renderer binary) + + this.storageDirectory = new File(this.workingDirectory.getParent() + File.separator + "sheepit_binary_cache"); + this.storageDirectory.mkdir(); } catch (IOException e) { e.printStackTrace();